From: Muhali <mu...@us...> - 2012-11-20 12:16:21
|
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. |