Adapting example_opendap.m as follows
----
pkg load octcdf
nc = netcdf(ncfile='http://hycom.coaps.fsu.edu/thredds/dodsC/atl_ops','r');
N=size(nc{'ssh'})
ssh = ncread(ncfile, 'ssh', [1 1 1], [1 1 N(3)])
----
I get
N =
730 1609 1678
error: Error while retrieving variable: NetCDF: Index exceeds dimension
bound.
error: called from:
error: /usr/local/octave-dev/share/octave/packages/octcdf-1.1.5/ncread.m
at line 51, column 3
error: foo.m at line 5, column 5
The 4th argument of ncread is the 'count' vector, so it should be able read
N(3) variables. Or am I missing something?
--
View this message in context:
http://octave.1599824.n4.nabble.com/ncread-octcdf-strange-tp4646809.html
Sent from the Octave - Dev mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev