Image Reduction and Analysis Facility
PACKAGE = ccdred
TASK = ccdmask
image = Input image
mask = Output pixel mask
(ncmed = 7) Column box size for median level calculation
(nlmed = 7) Line box size for median level calculation
(ncsig = 15) Column box size for sigma calculation
(nlsig = 15) Line box size for sigma calculation
(lsigma = 20.) Low clipping sigma
(hsigma = 20.) High clipping sigma
(ngood = 5) Minimum column length of good pixel seqments
(linterp= 2) Mask value for line interpolation
(cinterp= 3) Mask value for column interpolation
(eqinter= 2) Mask value for equal interpolation
(mode = ql)
Simply enter the name of the badpix file in the FIXFILE keyword of CCDPROC and run CCDPROC. That's all there is to it!
MIDAS:
filter/median raw_image median 7,1
replace/image raw_image fixed_imag badpix_1x1.fits -1,-1 median.bdf
i.e. this will replace each bad pixel with the median of the 7 pixel surrounding the bad pixel in the same row. An example of an U flat-field fixed this way is shown in this figure. The right image is an U flat-field before processing, while the left image is the same flat after applying the mask
*The 2002 gif image was boxcar-averaged with a 5x5 window to improve visibility, so it exagerates the extent of each bad pixel cluster. This was needed to make them visible on a compressed plot.