The features described in this topic are obsolete
and should not be used in new IDL code.
HDF_DFSD_ADDDATA
This routine is obsolete and should not be used in new IDL code.
The HDF_DFSD_ADDDATA procedure writes data, as well as all other information set via calls to HDF_DFSD_SETINFO and HDF_DFSD_DIMSET, to an HDF file.
The Data array must have the same dimensions as the array in the file. The new SDS is appended to the file, unless the OVERWRITE keyword is set.
Syntax
HDF_DFSD_ADDDATA, Filename, Data [, /OVERWRITE] [, SET_DIM=value{must set either this or the DIMS keyword to HDF_DFSD_SETINFO}] [, /SET_TYPE]
Arguments
Filename
A scalar string containing the name of the file to be written.
Data
An expression (typically an array) containing the data to write.
Keywords
OVERWRITE
Set this keyword to write Data as the first, and only, SDS in the file. All previously-written scientific data sets in the file are removed.
SET_DIM
Set this keyword to make the dimension information for the HDF file based upon the dimensions of Data.
Note
You must set the number of dimensions in the HDF file, either by setting the SET_DIM keyword or using the DIMS keyword to HDF_DFSD_SETINFO.
SET_TYPE
Set this keyword to make the data type of the current SDS based on the data type of the Data argument.