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.
            Examples
            
            SDinterface_id = HDF_SD_START('test.hdf', /CREATE)
            
            
            
            
            HDF_SD_ENDACCESS, SDdataset_id_1
            
            HDF_SD_END, SDinterface_id
            Another example can be seen in the documentation for HDF_SD_ATTRSET.
            Syntax
            HDF_SD_END, SDinterface_id
            Arguments
            SDinterface_id
            An SD interface ID as returned by HDF _SD_START.
            Keywords
            None 
            Version History
            
            See Also
            HDF_CLOSE, HDF_OPEN, HDF_SD_ENDACCESS, HDF_SD_START