MERRA2 and OPENDAP and matlab

64 views
Skip to first unread message

Mark Dempsey

unread,
Aug 18, 2016, 11:59:45 PM8/18/16
to sup...@opendap.org
Hi folks,
I hope this finds you all well.
I’m having a difficulty with the MERRA2 opendap page.
When I arrive at the OPeNDAP Server Dataset Access Form, I usually take the url and can use the matlab functions called ncread or ncdisp and then the url
for example
ncdisp('http://goldsmr4.gesdisc.eosdis.nasa.gov:80/opendap/MERRA2/M2T1NXFLX.5.12.4/2015/09/MERRA2_400.tavg1_2d_flx_Nx.20150910.nc4')

unfortunately I’m getting an error in matlab.

Error using netcdflib
Unable to open file. File may be corrupt or filename may have
invalid characters. If the data source was an OPeNDAP URL, see
the OPeNDAP Troubleshooting section in the Users Guide.

Error in netcdf.open (line 59)
[varargout{:}] = netcdflib ( 'open', filename,
varargin{1} );

Error in internal.matlab.imagesci.nc/openToRead (line 1265)
this.ncRootid =
netcdf.open(this.Filename,'NOWRITE');

Error in internal.matlab.imagesci.nc (line 121)
this.openToRead();

Error in ncdisp (line 50)
ncObj = internal.matlab.imagesci.nc(ncFile);

Can you tell me what I might be doing wrong? This was always how I retrieved information in MERRA1. I’m confused about what the issue is now.
Thank you kindly in advance,

Mark J. Dempsey
The Graduate Center, CUNY
Reply all
Reply to author
Forward
0 new messages