Bad Pixel Mask for 8 channel mode

The Mosaic 2 CCDs have relatively few bad pixels, mostly around the edges and in CCD #3.

Bad pixels do not respond to light at all, or respond in a nonlinear way. These can be removed from data using a bad pixel mask. The current bad pixel mask in the mscred package is from 2001, so we recommend using the updated bad pixel mask found here.


You can create your own bad pixel mask by taking appropriate flat field observations, or download the most recent mask image below.


Bad Pixel Mask Correction Files

Bad Pixel Mask for 8-channel mode, 14 May 2010

How To Use The Bad Pixel Mask

The bad pixel masks are not trimmed. Hence, your images must not be trimmed in order to use them.

Here are the steps to use the bad pixel masks:

  • Use these commands to change the header of your images, so that the image header keyword "BPM" will point to the new bad pixel masks:

hedit *.fits[1] BPM CAL0510/ veri- show+
hedit *.fits[2] BPM CAL0510/ veri- show+
hedit *.fits[3] BPM CAL0510/ veri- show+
hedit *.fits[4] BPM CAL0510/ veri- show+
hedit *.fits[5] BPM CAL0510/ veri- show+
hedit *.fits[6] BPM CAL0510/ veri- show+
hedit *.fits[7] BPM CAL0510/ veri- show+
hedit *.fits[8] BPM CAL0510/ veri- show+

  • run "ccdproc"
    here is an example:
images = @objects.list List of Mosaic CCD images to process
(output = ) List of output processed images
(bpmasks = ) List of output bad pixel masks
(ccdtype = object) CCD image type to process
(noproc = no) List processing steps only?
(xtalkco = yes) Apply crosstalk correction?
(fixpix = yes) Apply bad pixel mask correction?
(oversca = yes) Apply overscan strip correction?
(trim = yes) Trim the image?
(zerocor = yes) Apply zero level correction?
(darkcor = no) Apply dark count correction?
(flatcor = yes) Apply flat field correction?
(sflatco = no) Apply sky flat field correction?
(split = no) Use split images during processing?
(merge = no) Merge amplifiers from same CCD?
(xtalkfi = xtalk090401.txt) Crosstalk file
(fixfile = BPM) List of bad pixel masks
(saturat = ) Saturated pixel threshold
(sgrow = 1) Saturated pixel grow radius
(bleed = 20000.) Bleed pixel threshold
(btrail = 15) Bleed trail minimum
(bgrow = 1) Bleed pixel grow radius
(biassec = !biassec) Overscan strip image section
(trimsec = !trimsec) Trim data section
(zero = Zero.fits) List of zero level calibration images
(dark = ) List of dark count calibration images
(flat = Dflat.fits) List of flat field images
(sflat = Sflat.fits) List of secondary flat field images
(minrepl = 1.) Minimum flat field value
(interac = no) Fit overscan interactively?
(functio = legendre) Fitting function
(order = 1) Number of polynomial terms or spline pieces
(sample = *) Sample points to fit
(naverag = 1) Number of sample points to combine
(niterat = 1) Number of rejection iterations
(low_rej = 3.) Low sigma rejection factor
(high_re = 3.) High sigma rejection factor
(grow = 0.) Rejection growing radius
(fd = )  
(fd2 = )  
(mode = ql)  



Generate Your Own Bad Pixel Mask

  • Take Data: 7 Bias images, 7 Domeflats with short exposure times, 7 Domeflats with long exposure times.
    (The [OIII] filter works well to allow for a large dynamic range without using exposures that are too short. With the [OIII] filter you can take about 50s and 5s exposures.)
  • Zerocombine the Biases
  • Bias subtract the Domeflats
  • Flatcombine the domeflats with long exposure times
  • Flatcombine the domeflats with short exposure times
  • Divide the short exposure dome flat by the long exposure dome flat.
    (The iraf command to use is "mscarith")
  • download an old Mosaic bad pixel mask to use as a starting template
  • Display an image with the bad pixel mask overlayed:

mscred> display DividedFlat.fits[1] 1

  • Visually inspect the image and find bad pixels. Add these bad pixels to the bad pixel mask:
    imreplace[431:431,2631:2631] 1. (to indicate a bad pixel) and imreplace[334:334,1:4096] 1. (to indicate a bad column)

Back To Mosaic II

Updated: May 2010 by Andrea Kunder