HDF_SD_END
Syntax | Arguments | Keywords | Examples | Version History | See Also
The HDF_SD_END procedure closes the SD interface to an HDF file. Failure to close the file without a call to HDF_SD_END results in the loss of any changed or added SD data. Therefore, HDF_SD_END calls should always be paired with calls to HDF_SD_START. Before HDF_SD_END is called, all access to SD datasets should be terminated with calls to HDF_SD_ENDACCESS.
Syntax
HDF_SD_END, SDinterface_id
Arguments
SDinterface_id
An SD interface ID as returned by HDF _SD_START.
Keywords
None
Examples
; Open a new HDF file: SDinterface_id = HDF_SD_START('test.hdf', /CREATE) ; Various commands could now be used to access SD data ; in the HDF file. ; When done with datasets, access should be ended with ; calls to HDF_SD_ENDACCESS: HDF_SD_ENDACCESS, SDdataset_id_1 ; When done with an HDF file, it should be closed: HDF_SD_END, SDinterface_id
Another example can be seen in the documentation for HDF_SD_ATTRSET.
Version History
See Also
HDF_CLOSE, HDF_OPEN, HDF_SD_ENDACCESS, HDF_SD_START