%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1994 European Southern Observatory
%.IDENT      flatmos.hlq
%.AUTHOR     SM/LSW
%.KEYWORDS   MIDAS, help files, FLAT/MOS
%.PURPOSE    On-line help file for the command: FLAT/MOS
%.VERSION    1.0  04-AUG-1994 : Creation, SM
%----------------------------------------------------------------
\se
SECTION./MOS
\es\co
FLAT/MOS					20-SEP-1994 SM
\oc\su
FLAT/MOS [obj] objf [ff] [mos] [normff] [order] [method]
	normalize MOS flat-field frame and divide object by it
\us\pu
Purpose:   
	  Normalize MOS flat-field frame and divide object frame by it
\up\sy
Syntax:	  FLAT/MOS [obj] objf [ff] [mos] [normff] [order] [method]
\ys\pa
          obj = object image
              Session keyword: OBJECT
              Default: none
          objf = flat-field corrected object image
          ff = FF image
              Session keyword: FLAT
              Default: flat
          mos = Input table with slitlet positions
              Session keyword: MOS
              Default: mos
	  normff = normalized flat field
              Session keyword: NORMFLAT
              Default: normflat
	  order = order of fit, or width of median filter
              Session keyword: FFORD
              Default: 3
	  method = smoothing method (median or polynomial)
              Session keyword: NORMMET
              Default: poly
\ap\sa
See also:
          NORMAL/MOS
\ap\no
Note:       
          This command will fit a polynomial of order ORDER
          to the flat FF (resp. smooth FF with a median filter 
          of width ORDER), and divide FF by the fitted resp. 
          smoothed image, thereby creating the normalized flat 
          NORMFF. This normalized flat should now only show
          the high-frequency pixel-to-pixel variations of the CCD 
	  sensitivity. Then the object frame OBJ is divided through 
	  the normalized flat. OBJF holds the output of this action.
\on\exs
Examples:
\ex
          FLAT/MOS object objf flat mos normflat 3 poly
          Fits a 3rd order polynomial to the spectral signature of flat.bdf
          and thereby normalizes it to normflat.bdf. It then divides object.bdf
          by normflat.bdf and stores the result in objf.bdf.
\xe \sxe
