issue reading netcdf from thredds server behind https
2 views (last 30 days)
Show older comments
>> ncinfo('https://USERNAME:PASSWORD@zandmotordata.nl/thredds/dodsC/opendap/nc_cf_grid_write_x_y_orthogonal_tutorial.nc')
Error using internal.matlab.imagesci.nc/openToRead (line 1252)
Could not open https://USERNAME:PASSWORD@zandmotordata.nl/thredds/dodsC/opendap/nc_cf_grid_write_x_y_orthogonal_tutorial.nc for reading.
Error in internal.matlab.imagesci.nc (line 122)
this.openToRead();
Error in ncinfo (line 81)
ncObj = internal.matlab.imagesci.nc(ncFile);
I try to read from a netcdf file as above, with version 8.1.0.604 (R2013a), but get an error. Is this a know bug? Is there any workaround? For a local file, or an open thredds server I don't have this problem.
3 Comments
Nicolas
on 12 Oct 2015
I have a similar problem but it gives me this Error. I've used the link several times in google chrome, and in the last weeks I've downloaded the information in ascii format and then I've transformed it to a 3D-matrix. Although I would like to do it directly to my workspace. I'm posting the command line below.
Thank you so much for the help
VARDATA=ncread('https://wci.earth2observe.eu/thredds/dodsC/ceh/wrr1/e2o_nerc_wrr1_glob30_day_Runoff_1979-2012.nc','Runoff');
Error using internal.matlab.imagesci.nc/openToRead (line 1252)
Could not open
https://wci.earth2observe.eu/thredds/dodsC/ceh/wrr1/e2o_nerc_wrr1_glob30_day_Runoff_1979-2012.nc
for reading.
Error in internal.matlab.imagesci.nc (line 122)
this.openToRead();
Error in ncread (line 54)
ncObj = internal.matlab.imagesci.nc(ncFile);
Answers (1)
Walter Roberson
on 13 Oct 2015
This will not work at least through R2014a (I do not have a later version to check with). See http://uk.mathworks.com/matlabcentral/answers/248192-problem-with-netcdf-file-downloaded-from-an-opendap-source#answer_195740
0 Comments
See Also
Categories
Find more on NetCDF 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!