NAME

pformat - display keywords from the FITS header

SYNOPSIS

pformat [nospace] [nonull] keyword,[format] .... fits_file....

DESCRIPTION

pformat prints out the value of each specified keyword from the fits files specified on the command line.

Keywords may be specified in any case.

If the keyword is FNAME then the value of the fits file name is printed out. If the keyword is FSTEM then the stem (the part without path or extension) of the fits file name is printed out.

A trailing comma must follow each fits keyword. An optional format specfied in the C standard method may be placed. If none is specified, a string format is used (%s).

Unknown keywords will be printed out as null.

OPTIONS

nospace - replaces blanks in the string with underscores.

nonull - causes error message and non-zero exit when unknown keywords are found.

EXAMPLES

pformat exptime, SLIT, /data/a080123062.fits
prints out the values of EXPTIME and SLIT for the one fits file.
pformat ut, exptime,%5.2f /data/a080123*.fits
prints out the values of UT and EXPTIME for all the data files matching the wildcard.
pformat nospace fstem, object,%-15s ut, exptime,%5.2f /data/a080123*.fits
Prints out the filestem, the OBJECT name without spaces for all the specfied FITS files.
XVista Index