| esohdr | esowfi | esohdr |
esohdr -- translate ESO WFI raw headers for use with MSCRED
ESO WFI raw headers are modified for use with MSCRED. This includes renaming all HIERARCH keywords, renaming the extension names, setting the observation type, setting all the geometry keywords, and setting a first astrometric solution.
esohdr input
ESOHDR provides a header translation of raw WFI multiextension format (MEF) files so that the MSCRED task may be used. The translation includes renaming the HIERARCH keywords, adding keywords used by MSCRED, and setting an initial astrometric solution.
The task first checks for the keyword ESOHDR in the primary header to determine if the task has been run previously. Depending on the redo parameter files with the keyword will be ignored or the translation will be done again excluding the steps of renaming the HIERARCH keywords and converting the RA keyword from degrees to hours.
The HIERARCH convention keywords are converted to simple FITS keywords for access by IRAF and other software not supporting the HIERARCH format. The renaming consists of removing the first three words (HIERARCH, ESO, and the next word), concatenating the rest of the words, and truncating (if necessary) to 8 characters. For example,
"HIERARCH ESO INS FILT NAME" --> "FILTNAME"
IRAF supports an inheritance convention for merging the primary header keywords with the extension keywords. This means IRAF tasks that operate on extensions will see a complete set of keywords automatically. The ESOHDR task sets the INHERIT keyword to provide this feature.
Next the observation type is queried if desired. This is done because the current headers don't include information allowing the automatic identification of the observation type. The observation type is set in the primary header keyword FRAMTYPE.
Each extension is modified to provide the keywords used by MSCRED. The geometry of the readout -- the size, direction, location of overscan and prescan, etc. -- is determined from other information in the header. Also the extension names are modified to a shorter and more convenient form. The names are "im#" where # is the CCD number (1-8).
In the last step the RA keyword, which is given in degrees in the raw ESO primary header, is converted to hours, which is what is expected by MSCRED. This is only done once. The RA and DEC keywords are then used to define the tangent point of the world coordinate system for the mosaic exposure. The other terms of the linear WCS are set from an astrometric solution specified in a database file. A default database file is provided.
1. Set the headers for a set of raw ESO files.
cl> esohdr *.fits
mscred package documentation