loaddaps (Net cdf) problem on new computer (Windows 7) and new version (2011b) of Matlab
Show older comments
Hello,
I recently switched computers (from XP to Windows 7) and updated from 2009b to 2011b versions of Matlab.
I have old code that runs off the opendap toolbox. It used to run, but it won't anymore. Here is a snippet that should work for anyone that has loaded the OpenDAP functions:
addpath('C:\opendap\loaddap')
Sal=loaddap('http://iridl.ldeo.columbia.edu/expert/SOURCES/.NOAA/.NODC/.WOA09/.Grid-1x1/.Annual/.salinity/.s_an/dods');
The data are salinity data from the World Ocean Atlas 2009. I receive the following error:
??? Error: File: loaddap.m Line: 1 Column: 27
Unbalanced or unexpected parenthesis or bracket.
I have tried to point the ncread function to the same url, but I get the following error:
Sal=ncread('http://iridl.ldeo.columbia.edu/expert/SOURCES/.NOAA/.NODC/.WOA09/.Grid-1x1/.Annual/.salinity/.s_an/dods');
??? Error using ==> nc>nc.openToRead at 1255
Could not open http://iridl.ldeo.columbia.edu/expert/SOURCES/.NOAA/.NODC/.WOA09/.Grid-1x1/.Annual/.salinity/.s_an/dods for
reading
Error in ==> nc>nc.nc at 123
this.openToRead();
Error in ==> ncread at 51
ncObj = internal.matlab.imagesci.nc(ncFile);
I don't know if this is a loaddaps problem, a Matlab problem, a problem with the database, or a problem with my understanding of this code. Can anyone help me with this issue?
Thank you, Brad
Accepted Answer
More Answers (0)
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!