Main Content

matlab.io.hdfeos.gd.projInfo

Namespace: matlab.io.hdfeos.gd

GCTP projection information about grid

Syntax

[projCode,zoneCode,sphereName,projParm] = projInfo(gridID)

Description

[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, see Chapter 6 of the HDF-EOS Library User's Guide, Volume 1: Overview and Examples.

Examples

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);