next up previous contents
Next: Combining Bias Frames Up: Preparing Your Calibration Previous: Input and Output

Combining Methods

  Except for summing the frames together, combining frames may require correcting for variations between the frames due to differing exposure times, sky background, extinctions, and positions. Currently, scaling and shifting corrections are included. The scaling corrections may be done by exposure times or by computing the mode in each frame over a selected part of the sky. Additive shifting is also done by computing the mode in the frames. The region of the frames in which the mode is computed can be specified by the keyword `exp'_SEC (where `exp' is the exposure type). By default the whole frame is used. A scaling correction is used when the flux level or sensitivity is varying. The offset correction is used when the sky brightness is varying independently of the object brightness. If the frames are not scaled then special routines combine the frames more efficiently.

In the combining no checks are done on the reduction status of the input frames and not attempts are made for any calibration correction like for bias or dark. Hence, in more complicated reduction sequences the user should be sure not to combine e.g. flat fields that have been corrected for bias and dark with flats fields that are not corrected.

Except for medianing and summing, the frames are combined by averaging. The average may be weighted by

where N is the number of frames previously combined (the command records the number of frames combined in the frame descriptor), scale is the relative scale (applied by dividing) from the exposure time or mode, and is a variable offset estimated from the background mode. In most of the applications N = 1, i.e. the input calibration frame are the original one and not the result of previous combinings.

There are a number algorithms which may be used as well as applying statistical weights. The algorithms are used to detect and reject deviant pixels, such as cosmic rays. The choice of algorithm depends on the data, the number of frames, and the importance of rejecting cosmic rays. The more complex the algorithm the more time consuming the operation. For every method pixels above and below specified thresholds can be rejected. These thresholds are stored the keyword `exp'_MET. If used the input frames are combined with pixels above and below the specified threshold values (before scaling) excluded. The sigma frame, if requested, will also have the rejected pixels excluded.

The following list summarizes the algorithms. Further algorithms are available elsewhere in MIDAS (see COMPUTE/..., AVERAGE/...), or may be added in time.

The "avsigclip" algorithm is the best algorithm for rejecting cosmic rays, especially with a small number of frames, but it is also the most time consuming. With many frames (>10-15) it might be advisable to use one of the other algorithms ("maxreject", "median", "minmaxrej") because of their greater speed.

The choice of the most optimal combining algorithm will clearly depend on the nature of the data and on the exposure type. Therefore, for every supported exposure type the CCD context contains a default combining setup. Currently, there are five combining setups stored in the CCD keywords, all starting with a specific two letter prefix: for bias BS_, dark DK_, dome flats FF_, sky flats SK_, and for all other exposure types OT_. At initialization these keywords are filled with sensible defaults. Below we will shortly comment on combining the various calibration frames and list the default keywords settings.



next up previous contents
Next: Combining Bias Frames Up: Preparing Your Calibration Previous: Input and Output



Pascal Ballester
Tue Mar 28 16:52:29 MET DST 1995