matlab.io.hdfeos.gd.gridInfo
Namespace: matlab.io.hdfeos.gd
Position and size of grid
Syntax
[xDim,yDim,upLeft,lowRight] = gridInfo(gridID)
Description
[xDim,yDim,upLeft,lowRight] = gridInfo(gridID) returns
the size of a grid as well as the upper left and lower right corners
of the grid.
Note
upLeft and lowRight are
in units of meters for all GCTP projections other than the geographic
and bcea projections, which will have units of packed degrees.
This function corresponds to the GDgridinfo function
in the HDF-EOS library C API.
Examples
import matlab.io.hdfeos.* gfid = gd.open('grid.hdf'); gridID = gd.attach(gfid,'PolarGrid'); [xdimsize,ydimsize,upleft,lowright] = gd.gridInfo(gridID); gd.detach(gridID); gd.close(gfid);