Main Content

matlab.io.hdfeos.gd.originInfo

Namespace: matlab.io.hdfeos.gd

Origin code

Syntax

originCode = originInfo(gridID)

Description

originCode = originInfo(gridID) retrieves the origin code for the grid specified by gridID. The originCode output is one of the following four values.

'ul'Upper-left
'ur'Upper-right
'll'Lower-left
'lr'Lower-right

This function corresponds to the GDorigininfo routine in the HDF-EOS library.

Examples

import matlab.io.hdfeos.*
gfid = gd.open('grid.hdf');
gridID = gd.attach(gfid,'PolarGrid');
origin = gd.originInfo(gridID);
gd.detach(gridID);
gd.close(gfid);

See Also