iousprafa / nctoolbox

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

grid_interop returns incorrect z coordinate in this URL #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
"depth" is returned with value "2000", but "z" should be returned with value 
-2000.

>> 
url1='http://ourocean.jpl.nasa.gov:8080/thredds/dodsC/MBNowcast/mb_das_201205180
3.nc'
>> nc = ncgeodataset(url1);
>> tvar=nc.geovariable('temp')

tvar = 

  ncgeovariable handle

  Properties:
       dataset: [1x1 ncgeodataset]
          name: 'temp'
          axes: {4x1 cell}
    attributes: {3x2 cell}

  Methods, Events, Superclasses

>> tdata=tvar.data(1,end,:,:);
>> tgrid=tvar.grid_interop(1,end,:,:);
>> tgrid

tgrid = 

     time: 733775
    depth: 2000
      lat: [171x1 double]
      lon: [131x1 double]

Original issue reported on code.google.com by rsignell on 22 May 2012 at 1:08

GoogleCodeExporter commented 8 years ago

Original comment by crosb...@gmail.com on 21 Jun 2012 at 3:17

GoogleCodeExporter commented 8 years ago
I'm not sure if this was fixed or what along the line, but it seems to work now 
as of 22dc61233a98

Original comment by crosb...@gmail.com on 21 Jun 2012 at 4:26

GoogleCodeExporter commented 8 years ago
agreed. it works for me also.

Original comment by rsignell on 21 Jun 2012 at 6:12