II-0. Preliminaries: setinstrument

Before we do anything with ccdproc or other reduction tasks, we must make sure that the right "translation" tables have been set up. We do this by running setinstrument

The task setinstrument will define for us which directories to look in for the default bad pixel mask and the like, and will also allow us to set up the basic parameters of ccdproc. More importantly it will set up the translation table between our header and the image type that IRAF will go looking for.

setinstrument kpno 4meter CCDMosaThin1

or

You will then be dumped into the package parameters for mscred itself. Here's how we set things up.


PACKAGE = clpackage
   TASK = mscred

(pixelty=            real real) Output and calculation pixel datatypes
(verbose=                  yes) Print log information to the standard output?
(logfile=              logfile) Text log file
(plotfil=                     ) Log metacode plot file
(backup =                 once) Backup data (none|once|all)?
(bkuproo=                 Raw/) Backup root (directory or prefix)
(instrum= mscdb$noao/kpno/4meter/CCDMosaThin1.dat) CCD instrument file
(ampfile=                 amps) Amplifier translation file
(ssfile =              subsets) Subset translation file
(im_bufs=                   4.) Image I/O buffer size (in Mbytes)
(graphic=             stdgraph) Interactive graphics output device
(cursor =                     ) Graphics cursor input
(version=    V4.5: May 4, 2001)
(mode   =                   ql)
($nargs =                    0)

If you do save an older version of your data as you go along, be sure to explictly create the "Raw" subdirectory alluded to above.


       images = "@all"          List of Mosaic CCD images to process
      (output = "")             List of output processed images
     (bpmasks = "@all")         List of output bad pixel masks
     (ccdtype = "object")       CCD image type to process
      (noproc = no)             List processing steps only?\n
    (xtalkcor = yes)            Apply crosstalk correction?
      (fixpix = yes)            Apply bad pixel mask correction?
    (overscan = 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?
    (sflatcor = no)             Apply sky flat field correction?
       (merge = yes)            Merge amplifiers from same CCD?\n
   (xtalkfile = "z$xtalk*.dat") Crosstalk file
     (fixfile = "BPM")          List of bad pixel masks
  (saturation = "!SATURATE")    Saturated pixel threshold
       (sgrow = 0)              Saturated pixel grow radius
       (bleed = "mean+5000")    Bleed pixel threshold
      (btrail = 20)             Bleed trail minimum length
       (bgrow = 0)              Bleed pixel grow radius
     (biassec = "!biassec")     Overscan strip image section
     (trimsec = "!trimsec")     Trim data section
        (zero = "z$Zero")       List of zero level calibration images
        (dark = "")             List of dark count calibration images
        (flat = "z$master*")    List of flat field images
       (sflat = "")             List of secondary flat field images
  (minreplace = 1.)             Minimum flat field value\n
 (interactive = no)             Fit overscan interactively?
    (function = "spline3")      Fitting function
       (order = 3900)           Number of polynomial terms or spline pieces
      (sample = "*")            Sample points to fit
    (naverage = 1)              Number of sample points to combine
    (niterate = 1)              Number of rejection iterations
  (low_reject = 3.)             Low sigma rejection factor
 (high_reject = 3.)             High sigma rejection factor
        (grow = 0.)             Rejection growing radius
          (fd = "")             
         (fd2 = "")             
        (mode = "ql")