The HDF_DFAN_PUTLABEL procedure writes a label for the given tag and reference number in a Hierarchical Data Format file.
Due to a problem in the HDF version 4.0 library, attempting to rewrite a label fails. For example:
file = 'blah.hdf' ; Specify a file.
tag = 105 & ref = 40 ; Specify tag and ref numbers.
HDF_DFAN_PUTLABEL, file, tag, ref, 'XXXX' ; Make label "XXXX"
HDF_DFAN_PUTLABEL, file, tag, ref, 'YY' ; Label now "YY"
The following command deletes the file:
OPENU, unit, file, /DELETE, /GET & CLOSE, unit
Now try to re-use label "XXXX":
HDF_DFAN_PUTLABEL, file, tag, ref, 'XXXX'