The HDF_SD_REFTOINDEX function returns a scientific dataset’s index given its reference number and SD interface ID.
Examples
SDinterface_id = HDF_SDSTART('demo.hdf')
Reference_number = 66
index = HDF_SD_REFTOINDEX(SDinterface_id, Reference_number)
SDdataset_id = HDF_SD_SELECT(SDinterface_id, index)
HDF_SD_ENDACCESS,SDdataset_id
HDF_SD_END, SDinterface_id
Syntax
Result = HDF_SD_REFTOINDEX(SDinterface_id, Reference_number)
Return Value
Returns the index number associated with the specified SD dataset.
Arguments
SDinterface_id
An SD interface ID as returned by HDF_SD_START.
Reference_number
The SD reference number for the desired dataset.
Keywords
None
Version History
See Also
HDF_SD_IDTOREF, HDF_SD_NAMETOINDEX