DaniSb170 / nctoolbox

Automatically exported from code.google.com/p/nctoolbox
0 stars 0 forks source link

cfdataset fails on http://blackburn.whoi.edu:8081/thredds/dodsC/coawst/fmrc/coawst_2_best.ncd #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

url='http://blackburn.whoi.edu:8081/thredds/dodsC/coawst/fmrc/coawst_2_best.ncd'
;
ds = cfdataset(url);

% Grab the variable of interest. No data is being read yet.
v = ds.variable('temp');
sz= size(v);

% Grab a subset of the data. Data is now being pulled across the network
t = v.data([sz(1) sz(2) 1 1], [sz(1) sz(2) sz(3) sz(4)]);

??? Undefined function or variable "vFirst".

Error in ==> ncvariable>ncvariable.somedata at 250
               d.data.(name) = obj.dataset.data(name, vFirst, vLast, vStride);

Error in ==> ncvariable>ncvariable.data at 128
               d = somedata(obj, first, last, stride);

Error in ==> ncvariable>ncvariable.subsref at 138
                   sref = builtin('subsref',obj,s);

Original issue reported on code.google.com by bschlin...@gmail.com on 29 Oct 2009 at 3:38

GoogleCodeExporter commented 8 years ago
Another report on this:

Tried another subsetting operation, trying to get data from a specific
lon, lat location (j=100, i=75) from a 4D model result, and failing:

url='http://blackburn.whoi.edu:8081/thredds/dodsC/pv/output_8sed';
ds = cfdataset(url);
v = ds.variable('sand_01');
ssc=v.data([1 1 100 75],[2161 32 100 75]);

??? Undefined function or variable "vFirst".

Error in ==> ncvariable>ncvariable.somedata at 250
               d.data.(name) = obj.dataset.data(name, vFirst, vLast, vStride);

Error in ==> ncvariable>ncvariable.data at 128
               d = somedata(obj, first, last, stride);

Error in ==> ncvariable>ncvariable.subsref at 138
                   sref = builtin('subsref',obj,s);

Error in ==> test2 at 11
ssc=v.data([1 1 100 75],[2161 32 100 75]);

Original comment by bschlin...@gmail.com on 12 Nov 2009 at 4:38

GoogleCodeExporter commented 8 years ago
Fixed in HG. I'll add a new release today

Original comment by bschlin...@gmail.com on 12 Nov 2009 at 7:27

GoogleCodeExporter commented 8 years ago

Original comment by bschlin...@gmail.com on 12 Nov 2009 at 7:27