|
Purpose
|
Retrieves information about an attribute. |
|
Return value
|
Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise. |
|
Description
|
SDattrinfo retrieves the name, data type, and number of values of the attribute specified by its index, attr_index, and stores them in the parameters attr_name, data_type, and count, respectively. This routine should be used before reading the values of an attribute with SDreadattr. |
|
|
The parameter obj_id can be either an SD interface identifier (sd_id), returned by SDstart, a data set identifier (sds_id), returned by SDselect, or a dimension identifier (dim_id), returned by SDgetdimid. |
|
|
Valid values of the parameter attr_index range from 0 to the number of attributes attached to the object - 1. |
|
|
Valid values of the parameter data_type can be found in Table 1A of Section I of this manual. |