HDF_SD_SELECT

The HDF_SD_SELECT function returns an SD dataset ID given the current SD interface ID, and the zero-based SD dataset index.

HDF_SD_FILEINFO can be used to determine the number of SD datasets in an HDF file, HDF_SD_REFTOINDEX can be used to find the index from its SD dataset ID, and HDF_SD_NAMETOINDEX can be used to find the index from its name.

Calling Sequence

Result = HDF_SD_SELECT( SD_ID, Number )

Arguments

SD_ID

A SD interface ID as returned from HDF _SD_START.

Number

A zero-based SD dataset index.

Example

sd_id = HDF_SD_START('test.hdf') ; Open an HDF file.

sds_id_1=HDF_SD_SELECT(sd_id, 0) ; Access the first SD in the HDF file.

HDF_SD_ENDACCESS, sds_id_1 ; End access to any SD ids.

HDF_SD_END, sd_id ; Close the file.

See Also

HDF_SD_CREATE , HDF_SD_END , HDF_SD_ENDACCESS , HDF_SD_NAMETOINDEX , HDF_SD_REFTOINDEX , HDF_SD_SELECT , HDF_SD_START