Package: matlab.io.hdfeos.gd
GCTP projection information about grid
[projCode,zoneCode,sphereName,projParm] = projInfo(gridID)
[projCode,zoneCode,sphereName,projParm] = projInfo(gridID)
returns
the GCTP projection code, zone code, spheroid, and projection parameters
for the grid identified by gridID
.
zoneCode
is -1 if projCode
is
anything other than 'UTM'
.
This function corresponds to the GDprojinfo
function
in the HDF-EOS library C API.
For details about the GCTP projection code, zone code, spheroid code, and projection parameters, please consult the HDF-EOS User's Guide.
import matlab.io.hdfeos.* fid = gd.open('grid.hdf'); gridID = gd.attach(fid,'PolarGrid'); [projCode,zoneCode,sphereCode,projParm] = gd.projInfo(gridID); gd.detach(gridID); gd.close(fid);