Main Content
matlab.io.hdfeos.gd.fieldInfo
Namespace: matlab.io.hdfeos.gd
Information about data field
Syntax
[dims,ntype,dimlist] = fieldInfo(gridID,fieldname)
Description
[dims,ntype,dimlist] = fieldInfo(gridID,fieldname)
returns information
about a specific geolocation or data field in the grid. dims
is a vector
containing the dimension sizes of the field. ntype
is a character vector or
string scalar containing the HDF number type of the field. dimlist
is a cell
array of character vectors or a string array containing the dimension names.
This function corresponds to the GDfieldinfo
function
in the HDF-EOS library C API, but because MATLAB® uses FORTRAN-style
ordering, the dimlist
parameter is reversed with
respect to the C library API.
Examples
import matlab.io.hdfeos.* gfid = gd.open('grid.hdf','read'); gridID = gd.attach(gfid,'PolarGrid'); [dims,ntype,dimlist] = gd.fieldInfo(gridID,'ice_temp'); gd.detach(gridID); gd.close(gfid);