The HDF_DFAN_ADDFID procedure adds a file annotation to an HDF file. A file can have multiple annotations added.
Examples
filename = 'FID.hdf'
hid = HDF_OPEN(filename,/CREATE)
HDF_DFAN_ADDFID, filename, 'File Annotation #1'
HDF_DFAN_ADDFID, filename, 'File Annotation #2'
HDF_DFAN_GETFID, filename, fid1
HDF_DFAN_GETFID, filename, fid2
HELP, fid1, fid2
HDF_DFAN_GETFID, filename, fid3
HDF_DFAN_GETFID, filename, fid4, /FIRST
HELP, fid4
HDF_CLOSE, hid
IDL Output
FID1 STRING = 'File Annotation #1'
FID2 STRING = 'File Annotation #2'
% HDF_DFAN_GETFID: Could not read ID length
FID4 STRING = 'File Annotation #1'
Syntax
HDF_DFAN_ADDFID, Filename, Label
Arguments
Filename
A scalar string containing the name of the file to be written.
Label
A string containing the annotation string.
Keywords
None
Version History