matlab.io.hdfeos.gd.inqFields
Package: matlab.io.hdfeos.gd
Information about data fields defined in grid
Syntax
[fldList,fldRank,fldType] = inqFields(gridID)
Description
[fldList,fldRank,fldType] = inqFields(gridID)
returns
the list of fields fldList
as a cell array. fldRank
contains
the rank of each data field. fldType
is a cell
array containing the data type of each data field.
This function corresponds to the GDinqfields
function
in the HDF-EOS library C API.
Examples
import matlab.io.hdfeos.* gfid = gd.open('grid.hdf'); gridID = gd.attach(gfid,'PolarGrid'); [fldlist,fldrank,fldtype] = gd.inqFields(gridID); gd.detach(gridID); gd.close(gfid); for j = 1:numel(fldrank) fprintf('%s: Rank %d, datatype %s\n', fldlist{j},fldrank(j),fldtype{j}); end