I have a problem with ncread, OPeNDAP and 4-dim data

2 次查看(过去 30 天)
I allways get a strange error when using OPeNDAP in ncread (Matlab 2012b, Linux and Windows) for 4-dimensional data sets (in this case: latitude longitude depth time). For example reading in this ocean dataset leads to the following error:
ncread('http://icdc.zmaw.de/thredds/dodsC/ftpthredds/EASYInit/ECCO/temp.cdf','TEMP',[1 1 1 1],[inf inf 1 1])
Error using netcdflib The NetCDF library encountered an error during execution of 'getVarsFloat' function - 'DAP server error (NC_EDAPSVC)'. If the data source was an OPeNDAP URL, see the OPeNDAP Troubleshooting section in the Users Guide.
If I change at least one of the starting points, it works! For example:
ncread('http://icdc.zmaw.de/thredds/dodsC/ftpthredds/EASYInit/ECCO/temp.cdf','TEMP',[2 1 1 1],[inf inf 1 1])
or:
ncread('http://icdc.zmaw.de/thredds/dodsC/ftpthredds/EASYInit/ECCO/temp.cdf','TEMP',[1 1 1 2],[inf inf 1 1])
In the last example that means, that I can only get everything from the second time step on. Why? And what can I do, to change this behaviour?
Thank you very much and best regards, Remon

回答(1 个)

Ashish Uthama
Ashish Uthama 2013-5-7
Remon, I am not sure what is happening here. The error code appears to indicate a server side error DAP error codes. However, FWIW 13a appears to work fine.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by