Page 1 of 1

Errors with Matlab Accessing OPeNDAP HTTPS Data Files

PostPosted: Thu May 18, 2017 12:10 pm
by yiboj
Using Matlab ncdisp or ncread to read data from netCDF file located on the HTTPS OPeNDAP server returns an error. This bug was fixed as of R2017a(9.2). But as of release R2016b this is still an issue. However, it is easily fixed with a small patch, outlined in bug report 1072120.

The following shows the steps for the hotfix of Matlab 2016.

Installation instructions:

  1. Log in to an account with appropriate permissions to overwrite files in your MATLAB installation. On Linux systems, this is typically the root account.
  2. Locate your MATLAB installation by typing matlabroot at the MATLAB command prompt. This folder is referred to as <MATLAB> in subsequent steps. On Mac systems, the folder name will have a .app extension, e.g. /Applications/MATLAB_R20XXa.app
  3. Exit MATLAB.
  4. Download the attached .zip file associated with this Bug Report and store the file in the <MATLAB> folder.

    • Windows Systems: You may need administrative privileges to save the .zip file in the <MATLAB> folder. To do this, open this Bug Report in a browser started in administrator mode, then from the browser save the .zip file in the <MATLAB> folder.
    • Mac Systems: If you are using Safari on a Mac, disable automatic unzipping of the downloaded file by unchecking Open Safe Files After Downloading in Preferences > General.
  5. For each file that appears in the .zip file, find the corresponding file in your existing <MATLAB> folder and make a backup of it. To see the contents of the .zip file:
    • Windows Systems: Open the .zip file and look at the contents.
    • Linux/Mac Systems: Type the following in a shell (Linux) or in a terminal window (Mac):
      unzip -l <MATLAB>/<.zip file>
      On a Mac, include the .app extension in the folder name.
  6. Extract the files from the .zip file into the <MATLAB> folder.
    • Windows Systems:
      • Open the .zip file.
      • Extract the contents of the file into your <MATLAB> folder. You may be prompted to provide Administrator privileges when extracting the .zip file.
    • Linux/Macintosh Systems: Type the following in a shell (Linux) or in a terminal window (Mac):
      cd <MATLAB>
      unzip <.zip file>
      On a Mac, include the .app extension in the folder name.
  7. Delete the .zip file in the <MATLAB> folder.