This function retrieves the name, data type, and number of values of the attribute for the HDF data object identified by the parameter obj_id.
Syntax
Result = HDF_GR_ATTRINFO(obj_id, attr_index, name, data_type, count)
Return Value
Returns SUCCEED (0) 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_index
Index of the attribute. The value of this parameter can be obtained using HDF_GR_FINDATTR, HDF_GR_NAMETOINDEX or HDF_GR_REFTOINDEX, depending on available information. Valid values range from 0 to the total number of attributes attached to the object minus 1. The total number of attributes attached to the file can be obtained using the routine HDF_GR_FILEINFO. The total number of attributes attached to an image can be obtained using the routine HDF_GR_GETIMINFO.
name
A named variable in which the name of the attribute is returned.
data_type
A named variable in which the attribute data type is returned.
count
A named variable in which the number of attributes is returned.
Keywords
None
Version History