% @(#)searchmos.hlq	1.3 (ESO-DMD) 2/14/94 16:36:52
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1994 European Southern Observatory
%.IDENT      searchmos.hlq
%.AUTHOR     PB, DMD/ESO
%.KEYWORDS   MIDAS, help files, SEARCH/MOS
%.PURPOSE    On-line help file for the command: SEARCH/MOS
%.VERSION    1.0  14-FEB-1994 : Creation, PB
%----------------------------------------------------------------
\se
SECTION./MOS
\es\co
SEARCH/MOS					19-AUG-1993 OS
\oc\su
	SEARCH/MOS [wlc] [t,w] [ybin] [meth] [mostab] [lintab] 
\us\pu
Purpose:   
	  Search for arc lines in MOS slitlets and center them	
\up\sy
Syntax:
	  SEARCH/MOS [wlc] [t,w] [ybin] [meth] [mostab] [lintab] 
\ys\pa
          wlc = wavelength calibration image. \\
              Session Keyword: WLC \\
              Default value: wlc
          t,w  = threshold, window \\.
              Session Keyword: SEAPAR \\
              Default value: 200,5
          ybin = Step, binning radius in y-direction.
              Session Keyword: YBIN \\
              Default value: 3,3
          meth = centering method (gaussian or gravity).  \\
              Session Keyword: CENTMET \\
              Default value: gravity
	  mostab = Input table  \\
	      Session Keyword: MOS \\
              Default value: mos
	  lintab = Output table \\
              Session Keyword: LINPOS \\
              Default value: linpos
\ap\sa
See also:  
          CALIBRATE/MOS
\as\no
Note:       
	  Takes the wavelength calibration frame and scans the CCD rows 
          searching for arc lines with an intensity above the threshold
          t relative to local background determined in the 
          search window w. It takes only every ybin(1)th row
          and averages as many CCD rows as given by ybin(2) before 
          scanning. The search areas are the slitlets defined by 
          mostab.tbl and the results are stored in lintab.tbl. 
\on\exs
Examples:
\ex
	  SEARCH/MOS wlc2 100,10
          Takes the calibration frame wlc2.bdf and searches lines above
          a threshold of 100 within a search window of 10 pixels. Step
          and binning are defined by keyword YBIN, centering method by
          keyword CENTMET. The slitlet table is taken from keyword MOS
          and the result table from keyword LINPOS.
          SEARCH/MOS wlc 50,10 5,3 gauss
          Takes the calibration frame wlc.bdf and searches lines above
          a threshold of 50 within a search window of 10 pixels. It takes
          every 5th CCD row and averages 3 rows before scanning. The 
          centering of the lines is done by fitting a Gaussian to their
          intensity distribution. The slitlet table is taken from keyword
          MOS and the result table from keyword LINPOS.
\xe \sxe
