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.
nonull - causes error message and non-zero exit when unknown keywords are found.
pformat exptime, SLIT, /data/a080123062.fitsprints out the values of EXPTIME and SLIT for the one fits file.
pformat ut, exptime,%5.2f /data/a080123*.fitsprints 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*.fitsPrints out the filestem, the OBJECT name without spaces for all the specfied FITS files.