Next: Header Formats, Previous: Image Formats, Up: Image Formats
The image bin weight output format is independent of the gridding scheme, but does depend upon whether the output is in ascii or binary. In all cases empty bins are added so that the full complement of bins (as dictated by the grid limits) are present.
Bins are written out in sets, one set per i value. The contents
of the parameter i_prefix
are written before each set, those of
the parameter i_suffix
after each set. Bin weights are printed
using the format in the parameter wt_format
. The contents of the
parameter j_pad
are written between each bin weight (but not
after the last bin in a set).
Each bin is written on a separate line. The data output for each bin is
i, j, x, y, and the weight of the bin. They are
separated by tabs. The x and y positions are written out
with the format specified by the parameter pos_format
, the weight
is written with that specified by the parameter wt_format
. A two
line ‘/rdb’ style header begins the file, with column names
‘i’, ‘j’, ‘x’, ‘y’, ‘wt’.
The output format depends upon the language compatibility mode.
The data type (single or double precision) is determined by the
image_datum
parameter.
For C compatibility, the bins are dumped with no record information, with i increasing slower than j. In Fortran mode, each set of bins with the same i value is written as a record. (Fortran records are not written by a Fortran routine, but are simulated in C by writing a record length as a four byte integer before and after each record. This works on SGI's and Sun's.)