Download and Installation Instructions Windows: Download one of following self-extracting files: 32-bit Windows: matlab_cdf390_win32.exe 64-bit Windows: matlab_cdf390_win64.exe Double-click the downloaded file to extract the files included in the package to a directory (default to c:\matlab_cdf390_patch). 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:\matlab_cdf390_patch, the command should be addpath 'C:\matlab_cdf390_patch' Use Matlab as usual (e.g. data=spdfcdfread('test.cdf')). Mac OS X: Download the the following compressed tar file: Mac OS X Intel 64-bit: matlab_cdf390_mac64.tar.gz Move the Matlab-CDF-Patch directory in the downloaded file to the directory 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_cdf390_patch 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/cdf, the command should be addpath '/Users/cdf/matlab_cdf390_patch' Use Matlab as usual (e.g. data=spdfcdfread('test.cdf')). Linux Download one of the following compressed tar files: Linux 32-bit: matlab_cdf390_lin32.tar.gz Linux 32-bit: matlab_cdf390_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_cdf390_patch directory, where * is either 32 or 64. depending the tar file.] 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/cdf, the command should be addpath '/home/cdf/matlab_cdf390_patch' Use Matlab as usual (e.g. data=spdfcdfread('test.cdf')). If you have any questions or encounter problems, please send an email to gsfc-cdf-support@lists.nasa.gov and we'll respond as soon as possible.