Download and Installation Instructions. [Note: 32-bit modules are no longer supported.] Windows: Download the following compressed file: 64-bit Windows: matlab_cdf_win64.zip Double-click the downloaded file to extract the files included in the package to a directory (default to matlab_cdf392_win64). Download leap second table: CDFLeapSeconds.txt and set the environment variable CDF_LEAPSECONDSTABLE to the downloaded leap second table. The step is only necessary when a new leap second is added and the shared library is not upgraded through the previous step. This environment variable needs to be set when running CDF modules under MATLAB. set CDF_LEAPSECONDSTABLE=<...>\CDFLeapSeconds.txt where <...> is the directory that holds CDFLeapSeconds.txt Invoke MATLAB and issue the following command at the MATLAB prompt: addpath '' For example, if the patch is installed under C:\users\jones\my_matlab\matlab_cdf392_win64, the command should be addpath 'C:\users\jones\my_matlab\matlab_cdf392_win64' Use MATLAB as usual (e.g. data=spdfcdfread('test.cdf')). Mac OS X: Download one of the following compressed tar files: matlab_cdf_maci64.tar.gz - for Mac OS X running MATLAB R2023a and earlier matlab_cdf_maca64.tar.gz - for Mac OS X running MATLAB R2023b and later Move the downloaded file into the directory you want the patch to be installed. Extract the files in the package using the following command: tar zxvf [The extracted files will be placed in matlab_cdf392_patch-64 directory.] Download leap second table: CDFLeapSeconds.txt and set the environment variable CDF_LEAPSECONDSTABLE to the downloaded leap second table. The step is only necessary when a new leap second is added and the shared library is not upgraded through the previous step. This environment variable needs to be set when running CDF modules under MATLAB. setenv CDF_LEAPSECONDSTABLE <...>/CDFLeapSeconds.txt (C/TCsh) export CDF_LEAPSECONDSTABLE=<...>/CDFLeapSeconds.txt (Bourne/Bash) where <...> is the directory that holds CDFLeapSeconds.txt Invoke MATLAB and issue the following command at the MATLAB prompt: addpath '' For example, if the patch is installed under /Users/jones, the command should be addpath '/Users/jones/matlab_cdf392_patch-64' Use MATLAB as usual (e.g. data=spdfcdfread('test.cdf')). Linux Download the following compressed tar file: Linux 64-bit: matlab_cdf_lin64.tar.gz Go to the directory where you want the patch to be installed under. Extract the files in the package using the following command: tar zxvf [The extracted files will be placed in matlab_cdf392_patch-64 directory.] Download leap second table: CDFLeapSeconds.txt and set the environment variable CDF_LEAPSECONDSTABLE to the downloaded leap second table. The step is only necessary when a new leap second is added and the shared library is not upgraded through the previous step. This environment variable needs to be set before running CDF modules under MATLAB. setenv CDF_LEAPSECONDSTABLE <...>/CDFLeapSeconds.txt (C/TCsh) export CDF_LEAPSECONDSTABLE=<...>/CDFLeapSeconds.txt (Bourne/Bash) where <...> is the directory that holds CDFLeapSeconds.txt Invoke MATLAB and issue the following command at the MATLAB prompt: addpath '' For example, if the patch is installed under /Users/jones, the command should be addpath '/home/jones/matlab_cdf392_patch-64' Use MATLAB as usual (e.g. data=spdfcdfread('test.cdf')). If you have any questions or encounter problems, please send an email to nasa-cdf-support@nasa.onmicrosoft.com and we'll respond as soon as possible.