HDF_SD_ENDACCESS
The HDF_SD_ENDACCESS procedure closes an SD dataset interface. Failure to close the interface can result in the loss of any changed or added SD data. This routine should be called once for each call to HDF_SD_START or HDF_SD_CREATE. After all SD dataset interfaces are closed, the HDF file can safely be closed with HDF_SD_END.
Examples
; Open a new HDF file:
SDinterface_id = HDF_SD_START('test.hdf', /CREATE)
; Access the HDF file:
SDdataset_id_1 = HDF_SD_SELECT(SDinterface_id,0)
; End access to any SD IDs:
HDF_SD_ENDACCESS, SDdataset_id_1
; Close the HDF file:
HDF_SD_END, SDinterface_id
Also see the example in HDF_SD_ATTRSET.
Syntax
HDF_SD_ENDACCESS, SDinterface_id
Arguments
SDdataset_id
An SD dataset ID as returned by HDF_SD_SELECT, or HDF_SD_CREATE.
Keywords
None
Version History
|
4.0 |
Introduced |
See Also
HDF_CLOSE, HDF_OPEN, HDF_SD_CREATE, HDF_SD_ENDACCESS, HDF_SD_START