Files containing observations come in a number of different formats. The procedures for inspecting them to determine the values of the keywords that they contain differ for different formats. The following notes cover some of the more common formats, though they are not comprehensive. Note that you can convert a data file between any of the formats mentioned below (and others) using the CONVERT package (see SUN/55[12]).
) or
GAIA (see Section
) to measure instrumental
magnitudes in CCD frames then you will probably have converted them
to the If the observations were originally formatted as FITS files (see below) prior to being converted to the NDF format then all the FITS keywords are preserved in an extension to the NDF file and usually this extension will contain any information about the air mass etc. Application fitslist in KAPPA (see SUN/95[11]) will list the FITS extension of an NDF. Briefly, if you have not previously started KAPPA type kappa. Then type fitslist filename (remembering to omit the file type).
If you know the name of the required keyword then you can use the Unix command grep to extract just the required line from the output produced by fitslist. For example, if the required keyword was `AIRMASS' you would type:
If you cannot find the required datum in the FITS keywords then it is worth reading the FITS comments to see if they give any useful information.
You can examine the entire contents of an HDS file using hdstrace (see SUN/102[10]). This option will be useful if the file is not an NDF which was created from a FITS file. Simply type hdstrace filename (again remembering to omit the file type). hdstrace is a flexible utility and you should refer to SUN/102 for a full description.
Application fitshead in KAPPA (see SUN/95[11]) will list all the header information, including the keywords, in a FITS file. Briefly, if you have not previously started KAPPA type kappa. Then type fitshead filename. Alternatively, and perhaps even more simply, the header information can be displayed using Unix command more. The resulting display is perfectly readable, though perhaps not very æsthetic. This technique works best with a window which is eighty characters wide.
A description of the FITS format is beyond the scope of this note. However, briefly, a FITS file comprises a primary dataset and optionally one or more extensions. fitshead allows you to access the header information for the primary dataset and all the extensions. Conversely, often only the primary header information can be conveniently accessed with more.
The CCD Photometric Calibration Cookbook