STSDAS Tables

Print Formats


The print format is used by such tasks as tprint, tedit, and tread to determine how the column values are to be displayed. The earlier statement that the print format does not affect the way the values are stored in the table is really only true for binary tables. For output (or read-write) text tables the print format is actually used to write the file, so it is critical with regard to the precision of the data values. Most of the ordinary Fortran formats are supported for tables. SPP formats are discussed in the fmtio section of this document. The only SPP print formats that are not allowed are those that are simply irrelevant, such as t, w, and z. The field width may not be zero, however. The procedure tbbftp may be used to convert a user-supplied Fortran style format to an SPP style format.

Table E.13 is a list of the default print format for each data type, given in both SPP style and Fortran style.

Table E.13: Default Print Formats.

For character strings "n" is the string size as given when the column was defined. The minus sign means that the string will be left justified. While a format such as "A-12" is not available in standard Fortran, the tbbftp routine will convert it to "%-12s".

SPP formats and Fortran equivalents that are supported for tables are listed in this table. The syntax is %w.dC (SPP style) or Cw.d (Fortran style), where w is the field width, d is the number of decimal places (or precision for g format), and C is the format code as given in the left column below. When giving a format in Fortran style, use the format code given in the second column; these are shown in upper case but may also be given in lower case. Note that H and M are not standard Fortran formats; in particular, H is not interpreted as Hollerith.



Table E.14: Table Print Formats.

Table E.13: - Default Print Formats.
Table E.14: - Table Print Formats.

Generated with CERN WebMaker