Error read data from HYCOM
7 views (last 30 days)
Show older comments
Dear everyone,
I am trying to read data from HYCOM. Here the code that I use.
opdurl = ' http://tds.hycom.org/thredds/dodsC/GLBu0.08/expt_91.2 ' ;
ncdisp(opdurl);
But I got error as below, I don't know what's going it.
I really appriciate for your help.
Error using netcdflib
The NetCDF library encountered an error during execution of'open' function-'I/O failure (NC_EIO)'.If the data source was an OPeNDAP URL ,see the OPeNDAP Troubleshooting section in the
Users Guide.
Error in netcdf.open (line 67)
[varargout{:}] = netcdflib ( 'open' ,filename, varargin{1} );
Error in internal.matlab.imagesci.nc/openToRead (line 1278)
this.ncRootid = netcdf.open(this.Filename, 'NOWRITE' );
Error in internal.matlab.imagesci.nc (line 121)
this.openToRead();
Error in ncdisp (line 62)
ncObj = internal.matlab.imagesci.nc(ncFile);
Error in EX13 (line 2)
ncdisp(opdurl);
3 Comments
Walter Roberson
on 9 Aug 2020
It appears that hycom.org is being run as a consortium that includes USA government agencies. Some US government resources are blocked for access from some countries.
It looks to me as if you are probably in Japan, and I would not normally expect Japan to be blocked... but I have seen cases where data was restricted to USA, or was restricted to USA and Canada.
Have you been able to access files on that site from other system?
Answers (1)
Walter Roberson
on 9 Aug 2020
Your url has an extra space at the beginning and the end.
I deleted them and tried and had no problem.
4 Comments
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!