Master Flat

Functions

int omega_mflat_combine (cpl_parameterlist *pars, int xn)
 Process the twilight flats.

Detailed Description

Synopsis:
This recipe is used to derive a master twilight flat frame and a master flat for one particular chip and
filter. The recipe always takes as input a list of raw twilight flat frames, a master bias and an optional
master dome flat to be used in creating a final Master Flat Field. In addition, a hot pixel map and a cold
pixel map can be provided, which will be used to create a bad pixels map. Optionally, an overscan correction
mode can be set. The default is to apply no overscan correction. The raw twilight flats are trimmed and
overscan corrected. The data are then normalized, averaged, and the result is normalized again. Image
statistics are computed for the resulting frames. The recipe expects the following tags in the Set of Frames:
Input frames:
TWILIGHT_FLAT
MASTER_BIAS
MASTER_FLAT_DOME (optional)
HOTE_PIXELS_MAP (optional)
COLD_PIXELS_MAP (optional)
REFERENCE_MFLAT (optional)
Output frames:
MASTER_FLAT
BAD_PIXELS_MAP
      #include omega_recipe.h

Function Documentation

int omega_mflat_combine ( cpl_parameterlist *  pars,
int  xn 
)

Process the twilight flats.

Parameters:
pars Parameters list
xn FITS extension to load
Returns:
0 on success or -1 in case of error.

Definition at line 810 of file omega_mflat.c.

References makebpm(), omega_make_mflat(), omega_pfits_get_conad(), omega_pfits_get_detlive(), omega_pfits_get_gain(), and TrimOscanCorrect().


Generated on 11 Mar 2013 for OMEGA Pipeline Reference Manual by  doxygen 1.6.1