| mkillumcor | noao.imred.ccdred | mkillumcor |
mkillumcor -- Make flat field illumination correction images
mkillumcor input output
First, the input flat field images are automatically processed if needed. Then, the large scale illumination pattern of the images is determined by heavily smoothing them using a moving "boxcar" average. The illumination correction, the inverse of the illumination pattern, is applied by ccdproc to CCD images to remove the illumination pattern introduced by the flat field. The combination of the flat field calibration and the illumination correction based on the flat field is equivalent to removing the illumination from the flat field (see mkillumflat ). This two step calibration is generally used when the observations have been previously flat field calibrated. This task is closely related to mkskycor which determines the illumination correction from a blank sky image; this is preferable to using the illumination from the flat field as it corrects for the residual illumination error. For a general discussion of the options for flat fields and illumination corrections see flatfields .
The smoothing algorithm is a moving average over a two dimensional box. The algorithm is unconvential in that the box size is not fixed. The box size is increased from the specified minimum at the edges to the maximum in the middle of the image. This permits a better estimate of the background at the edges, while retaining the very large scale smoothing in the center of the image. Note that the sophisticated tools of the images package may be used for smoothing but this requires more of the user and, for the more sophisticated smoothing algorithms such as surface fitting, more processing time.
To minimize the effects of bad pixels a sigma clipping algorithm is used to detect and reject these pixels from the illumination. This is done by computing the rms of the image lines relative to the smoothed illumination and excluding points exceeding the specified threshold factors times the rms. This is done before each image line is added to the moving average, except for the first few lines where an iterative process is used.
1. The example below makes an illumination correction image from the flat field image, "flat017".
cl> mkillumcor flat017 Illum
ccdproc, flatfields, mkillumflat, mkskycor, mkskyflat