Main Content
matlab.io.hdfeos.gd.readAttr
Namespace: matlab.io.hdfeos.gd
Read grid attribute
Syntax
data = readAttr(gridID,attrname)
Description
data = readAttr(gridID,attrname)
reads
a grid attribute.
This function corresponds to the GDreadattr
function
in the HDF-EOS library C API.
Examples
import matlab.io.hdfeos.* gfid = gd.open('grid.hdf','read'); gridID = gd.attach(gfid,'PolarGrid'); data = gd.readAttr(gridID,'creation_date'); gd.detach(gridID); gd.close(gfid);