Error read data from HYCOM

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 commentaires

Walter Roberson
Walter Roberson le 9 Août 2020
you appear to have an extra space at the end of the url
Vinhteang Kaing
Vinhteang Kaing le 9 Août 2020
Thank Walter for your response.
But actually, when I write in command window, there are no space. And still got this error.
Walter Roberson
Walter Roberson le 9 Août 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?

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 9 Août 2020

0 votes

Your url has an extra space at the beginning and the end.
I deleted them and tried and had no problem.

4 commentaires

Vinhteang Kaing
Vinhteang Kaing le 9 Août 2020
Oh, really? When I write in commd window of Matlab, I don't use space but I got error.
So, is it possible that it come from my sever proxy?
opdurl = 'http://tds.hycom.org/thredds/dodsC/GLBu0.08/expt_91.2' ;
ncdisp(opdurl);
Source:
http://tds.hycom.org/thredds/dodsC/GLBu0.08/expt_91.2
Format:
classic
Global Attributes:
classification_level = 'UNCLASSIFIED'
distribution_statement = 'Approved for public release. Distribution unlimited.'
downgrade_date = 'not applicable'
classification_authority = 'not applicable'
institution = 'Naval Oceanographic Office'
source = 'HYCOM archive file'
history = 'archv2ncdf2d'
comment = 'p-grid'
field_type = 'instantaneous'
Conventions = 'CF-1.6 NAVO_netcdf_v1.1'
Dimensions:
depth = 40
lat = 2001
lon = 4500
time = 920
Walter Roberson
Walter Roberson le 9 Août 2020
and so on
Vinhteang Kaing
Vinhteang Kaing le 9 Août 2020
Yes, this is the right one. I still have no idea why my pc cannot run.
Thank you a lot.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by