Problem with MATLAB and Earthdata OPeNDAP
Posted: Thu May 11, 2023 8:16 pm America/New_York
I am trying to access the Earthdata OPeNDAP repository for a sea surface temperature product (OSPO Global Nighttime Foundation Sea Surface Temperature) that I previously downloaded from the PODACC OPeNDAP. While I did not have any issue with PODACC, I cannot access the Earthdata repository. For example, I tried to use the ncinfo comand to access the following granule:
https://opendap.earthdata.nasa.gov/collections/C2036877745-POCLOUD/granules/20230510000000-OSPO-L4_GHRSST-SSTfnd-Geo_Polar_Blended_Night-GLOB-v02.0-fv01.0
And I obtained the following error:
"The NetCDF library encountered an error during execution of 'open' function - 'Access failure (-77)'."
I have the Earthdata login in my .netrc and last year I used it to download ocean currents from the OSCAR data product. Today, I could access those data after one attempt, but when trying again I obtained the following error:
"The NetCDF library encountered an error during execution of 'open' function - 'DAP server error (NC_EDAPSVC)'"
Lastly, I tried the same approach with the two servers reported in the MATLAB tutorial (https://opendap.github.io/documentation/tutorials/matlab_tutorial.html) and I could not access those data either. This time, I obtained the following error:
"The NetCDF library encountered an error during execution of 'open' function - 'Not a valid data type or _FillValue type mismatch (NC_EBADTYPE)'"
I do not have problems using MATLAB to access other OPeNDAP servers (the Copernicus ones, for example). I am wondering if anyone knows the cause of this problem and/or if anyone is having similar issues using MATLAB and the EarthData OPeNDAP. Any help is appreciated.
PS: I am working on a MAC with OS Ventura and MATLAB R2021a
https://opendap.earthdata.nasa.gov/collections/C2036877745-POCLOUD/granules/20230510000000-OSPO-L4_GHRSST-SSTfnd-Geo_Polar_Blended_Night-GLOB-v02.0-fv01.0
And I obtained the following error:
"The NetCDF library encountered an error during execution of 'open' function - 'Access failure (-77)'."
I have the Earthdata login in my .netrc and last year I used it to download ocean currents from the OSCAR data product. Today, I could access those data after one attempt, but when trying again I obtained the following error:
"The NetCDF library encountered an error during execution of 'open' function - 'DAP server error (NC_EDAPSVC)'"
Lastly, I tried the same approach with the two servers reported in the MATLAB tutorial (https://opendap.github.io/documentation/tutorials/matlab_tutorial.html) and I could not access those data either. This time, I obtained the following error:
"The NetCDF library encountered an error during execution of 'open' function - 'Not a valid data type or _FillValue type mismatch (NC_EBADTYPE)'"
I do not have problems using MATLAB to access other OPeNDAP servers (the Copernicus ones, for example). I am wondering if anyone knows the cause of this problem and/or if anyone is having similar issues using MATLAB and the EarthData OPeNDAP. Any help is appreciated.
PS: I am working on a MAC with OS Ventura and MATLAB R2021a