The HDF_DFAN_GETLABEL procedure reads the label for the given tag-reference pair in an HDF file.
Examples
fid = HDF_OPEN('test.hdf', /ALL)
label = 'TEST LABEL'
tag = 105
ref = 2
HDF_DFAN_PUTLABEL, 'test.hdf', tag, ref, label
HDF_DFAN_GETLABEL, 'test.hdf', tag, ref, outl
HELP, outl
HDF_CLOSE, fid
Syntax
HDF_DFAN_GETLABEL, Filename, Tag, Ref, Label
Arguments
Filename
A scalar string that contains the name of the file to be read.
Tag
The tag number.
Reference
The reference number.
Label
A named variable in which the label is returned as a string.
Keywords
None
Version History
See Also
HDF_DFAN_GETDESC, HDF_DFAN_LABLIST, HDF_DFAN_PUTDESC, HDF_DFAN_PUTLABEL