The HDF_SD_DIMGETID function returns a dimension ID given a dataset's "SDS_ID" and a dimension number.
Result = HDF_SD_DIMGETID( SDS_ID, Dimension_Number )
An SD dataset ID as returned by HDF_SD _SELECT or HDF_SD_CREATE.
A zero-based dimension number. The dimension number must be greater than or equal to 0 and less than the maximum dimension number, or rank .
For an example illustrating this routine, see the documentation for HDF_SD_DIMSET.
HDF_SD_CREATE , HDF_SD_DIMGET , HDF_SD_DIMSET , HDF_SD_SELECT