This function finds the index of an HDF data object's attribute given its attribute name. HDF_GR_FINDATTR returns the index of the attribute whose name is specified by the parameter attr_name for the object identified by the parameter obj_id.
Syntax
Result = HDF_GR_FINDATTR(obj_id, attr_name)
Return Value
Returns the index of the attribute if successful or FAIL (-1) otherwise.
Arguments
obj_id
Raster image identifier (ri_id), returned by HDF_GR_CREATE or HDF_GR_SELECT, or HDF GR interface identifier (gr_id), returned by HDF_GR_START.
attr_name
Name of the attribute.
Keywords
None
Version History