4.A. The Ghost Pupil (For KPNO data only)

We need to get rid of the ghost pupil image in the flat fields. Running the master flat through 'mscpupil' with the "type = ratio" will produce a pupil free flat. Running 'mscpupil' a second time on the same initial flat but with the "type = data" will save a residual pupil image to be subtracted from the object images using 'rmpupil'.


PACKAGE= mscred
   TASK = mscpupil

input   =              masterU  List of input images
output  =         MasterU.fits  List of output images
(masks  =                  BPM) List of masks
(type   =                ratio) Output type
(lmedian=                   no) Subtract line-by-line median?
(xc     =                  27.) Pattern center offset (pixels)
(yc     =                   9.) Pattern center offset (pixels)
(rin    =                 300.) Radius of inner background ring (pixels)
(drin   =                  20.) Width of inner background ring (pixels)
(rout   =                1500.) Radius of outer background ring (pixels)
(drout  =                  20.) Width of outer background ring (pixels)
(funcin =            chebyshev) Inner azimuthal background fitting function
(orderin=                    2) Inner azimuthal background fitting order
(funcout=              spline3) Outer azimuthal background fitting function
(orderou=                    2) Outer azimuthal background fitting order
(rfuncti=              spline3) Radial profile fitting function
(rorder =                   40) Radial profile fitting order
(abin   =                   0.) Azimuthal bin (deg)
(astep  =                   0.) Azimuthal step (deg)
(niterat=                    3) Number of rejection iterations
(lreject=                   3.) Low rejection rms factor
(hreject=                   3.) High rejection rms factor
(datamin=                INDEF) Minimum good data value
(datamax=                INDEF) Maximum good data value
(verbose=                  yes) Print information?
(fd     =                     )
(mode   =                   ql)

PACKAGE = mscred
   TASK = mscpupil

input   =              masterU  List of input images
output  =         Ufebpup.fits  List of output images
(masks  =                  BPM) List of masks
(type   =                 data) Output type
(lmedian=                   no) Subtract line-by-line median?
(xc     =                  27.) Pattern center offset (pixels)
(yc     =                   9.) Pattern center offset (pixels)
(rin    =                 300.) Radius of inner background ring (pixels)
(drin   =                  20.) Width of inner background ring (pixels)
(rout   =                1500.) Radius of outer background ring (pixels)
(drout  =                  20.) Width of outer background ring (pixels)
(funcin =            chebyshev) Inner azimuthal background fitting function
(orderin=                    2) Inner azimuthal background fitting order
(funcout=              spline3) Outer azimuthal background fitting function
(orderou=                    2) Outer azimuthal background fitting order
(rfuncti=              spline3) Radial profile fitting function
(rorder =                   40) Radial profile fitting order
(abin   =                   0.) Azimuthal bin (deg)
(astep  =                   0.) Azimuthal step (deg)
(niterat=                    3) Number of rejection iterations
(lreject=                   3.) Low rejection rms factor
(hreject=                   3.) High rejection rms factor
(datamin=                INDEF) Minimum good data value
(datamax=                INDEF) Maximum good data value
(verbose=                  yes) Print information?
(fd     =                     )
(mode   =                   ql)