Open GoogleCodeExporter opened 8 years ago
I ran the following:
url = 'http://geoport.whoi.edu/thredds/dodsC/bathy/srtm30plus_v1.nc';
nc = ncgeodataset (url);
topovar = nc.geovariable('topo');
s.lon = [-71.2 -69.9];
s.lat = [41 42];
s.h_stride = [2 2]; % get every other value
g = topovar.geosubset(s);
imagesc(g.grid.lat, g.grid.lon, g.data); axis xy; colorbar;
title('SRTM (m)');
The above code ran fine. I'm unable to duplicate your error. It looks like your
syntax is not quite correct. Can you try my code snipped above and see if it
works for you.
Original comment by bschlin...@gmail.com
on 4 Nov 2013 at 5:27
Working through the syntax issues seems to clear it up. Brian's code works
fine.
First errors were on:
topovar nc.geovariable = ('top')
Which has the equals sign in the wrong place, then misspells 'topo'.
I'd say close this issue.
Original comment by drf...@gmail.com
on 14 Apr 2014 at 5:47
Original issue reported on code.google.com by
lfelip...@gmail.com
on 4 Nov 2013 at 4:43