The HDF_SD_START function opens or creates an HDF file and initializes the SD interface. The returned value of this function is the SD ID of the HDF file. If no keywords are present, the file is opened in read-only mode.
Note that every file opened with HDF_SD_START should eventually be closed with a call to HDF_SD_END.
sd_id = HDF_SD_START('test.hdf', /CREATE)
;
Open a new HDF file. The file is ready to be accessed.
HDF_SD_END, sd_id ; When finished with the file, close it with a call to HDF_SD_END.
For a more complicated example, see the documentation for HDF_SD_ATTRSET.
HDF_CLOSE , HDF_OPEN , HDF_SD_ATTRFIND , HDF_SD_ATTRINFO , HDF_SD_ATTRSET , HDF_SD_CREATE , HDF_SD_END , HDF_SD_FILEINFO , HDF_SD_NAMETOINDEX , HDF_SD_REFTOINDEX , HDF_SD_SELECT , HDF_SD_SETEXTFILE