| catfits | tables.fitsio | catfits |
catfits -- Produce a catalog of a FITS tape.
catfits input file_list
This task quickly catalogs a FITS tape or a group of FITS disk files. It reads only the header portion of each file, skipping the data. An optional parameter allows the user to print the full FITS header rather than a single line per file. For FITS files with extensions, you can specify an extension number to get a listing of that one item.
The keywords below represent the standard single line of information per processed file. You can change this by suplying a filename to the parameter format_file. If you want a log file, you can supply a file name to the parameter log_file. Up to 80 characters per line are sent to the display terminal.
The following information will be listed in short headers by default. The first column is a name of an image header keyword or a special name the program will process to give you the requested column information.
FITSNAME Input FITS name (Disk filename or tape
file number). (10 character)
FILENAME Original image file, if present.(16 characters)
BITPIX Bits per pixels of the input data and
the original datatype. (I,R,D,U,S)
DIMENS Input FITS file dimensionality.
BZERO Zero offset
BSCALE Scale factor
EXT# Extension number
Notes: (I,R,D,U,S) refer to Integer, Real, Double, Unsigned and Short
input data types, respectively. If the 'ieee' parameter is set,
a minus (-) sign appears between the letter and the bits figure.
DIMENS is the number of dimensions in the output FITS file; the
format is "NxNxN" If the input file is a table, this keyword indicates
the number of columns (Fields) and the number of rows in the table
with the suffix F and R (e.g., 27Fx12R).
The format of the format file is as follow. One column with the keywords and a second with the field width and position of the values within the columns. The column format is similar to the Fortran print formatted statement.
The following special keywords are available:
FITSNAME -10.10 # (string) The output FITS name or file number. FILENAME -16.16 # (string) The input file name. BITPIX -5.5 # (string) Bit per pixels and (I,U,R,D,S). DIMENS -10.10 # (string) Output FITS file dimensionality. DATATYPE -8.8 # (string) Input file data type. BZERO -12.6g # (float) Scale offset value. BSCALE -12.6g # (float) Scale value.
In addition to these specials keywords, you can add your own that match the ones in the input FITS header.
1. Catalog a set of FITS files on tape at 1600 bpi with short (i.e., one line per file) output.
fi> catfits mtb1600 1-999
2. Catalog a list of FITS files whose root is fits with long output.
fi> catfits fits* long+3. Catalog a FITS tape with you own format file; also create a log file with up to 132 columns of information. Notice that the format file resides in the working directory and the log file will be created there as well.
fi> catfits mta 1-999 format="myform.cat" log="fitstape.log"4. Catalog a FITS file with the extension number. This assumes that the file in the format paramater has the entry EXT#.
fi> catfits yfile.fits[3]will list the 2nd extension (The main FITS unit is [1]).
will be printed if the value in either field is greater than 9999. Use long headers in this case.