R D F I T S
Figaro routine to read file in a 'Disk FITS' format,
creating a Figaro data structure file that contains all
the information from the disk file (although not necessarily in
an ideal form, since the program cannot guess at the meaning
of all the various FITS keywords). For more details, see the
listing for FIG_FITIN.
Command parameters -
FILE (Character) The name of the 'Disk Fits' file.
IMAGE (Character) The name of the Figaro output file.
Command keywords -
SWAP Swap bytes. This should be set to YES if the data
have been stored in the proper FITS format (IBM-style)
and the program is running on a non-IBM byte order
machine such as a VAX. On a VAX, you should use:
SWAP=YES for AAO de facto 'disk FITS'.
SWAP=NO for WJT 'disk FITS'.
FLOAT Convert the data to floating point numbers. This is
normally what will be required, although note that only
single precision is supported. If FLOAT=NO is specified,
FITS will still convert to floating point if the data have
scaling and offset factors that are not 1.0 and 0.0
respectively. The case where FLOAT=NO, BITPIX=16,
BSCALE=1.0, BZERO=32768 is treated as a special case and
will generate an array of unsigned 16 bit integers.
FLOAT=NO is usually only useful in this special case and
in the case where BSCALE=1.0, BZERO=0.0, BITPIX=16, where
it will create a smaller data file with no loss of precision.
User Variables used - None
Note: Most of the various 'disk FITS' formats differ only in
whether or not they swap bytes, and in the details of the
way the disk data is organised in records. For example,
a VAX VMS file may have a 'FIXED', 'VARIABLE', or 'SEGMENTED'
format, whereas UNIX files are generally simpler. Also on
a machine that has a record-based file structure (like a VAX)
the record lengths may or may not be the 2880 bytes that would
match a FITS tape. This program determines the disk format
(fixed, variable,segmented) and record length for itself, and
uses the SWAP keyword to indicate whether the data bytes are to
be treated as swapped or not. It should therefore be able to
handle most of the available 'disk FITS' formats.
KS / AAO 17th June 1986
FIGARO A general data reduction system