WRITE_IPAC_TABLE
Name
WRITE_IPAC_TABLE
Purpose
Write an IPAC table from an IDL structure.
Explanation
Writes an IPAC table to a file from an IDL structure. If the
structure has certain pre-defined tag names (see below), the
header information will be written to the table.
Calling Sequence
write_ipac_table, in_struct, outfile, [/short_format, /exact_format, format=format]
Inputs
IN_STRUCT -- an IDL structure containing the table to be written to the output
ascii file. Header information must be in the keywords, HEADER_TABLE_HEADER,
HEADER_DATA_UNITS, and HEADER_NULL_VALUES.
OUTFILE -- string containing the name of the output file
Optional Input
/SHORT_FORMAT -- if set, uses IDL "print" formats.
/EXACT_FORMAT -- if set, floating point and double precision
data are written with formats of (e16.9) and
(e24.17), respectively. This option takes
precedence over the /SHORT_FORMAT option.
FORMAT -- A user supplied format statement that will
override the other formating options. This
is given in the usual IDL form, e.g. '(f13.6)'.
Outputs
On completion, an ascii table will be written to the outfile.
Procedures Used
GET_DATE
Notes
The default format is IDL's '(f)', ('d'), etc.
The procedure will write out header lines (lines starting with "\"), data unit and null
value lines if the structure has tag names "HEADER_TABLE_HEADER",
"HEADER_DATA_UNITS" and "HEADER_NULL_VALUES"
respectively. If "HEADER_COL_NAMES_ORIG" and
"HEADER_COL_TYPES_ORIG" are present, these will
be the column names and types. Currently forces "RA" and "DEC" to lower case.
Modification History
Initial version - H. Teplitz, IPAC September 2010
Output original column names/types if present - T. Brooke, IPAC June 2013