% @(#)backgrsmoo.hlq	19.1 (ESO-IPG) 02/25/03 14:18:31 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1991 European Southern Observatory
%.IDENT      backgrsmoo.hlq
%.AUTHOR     Pascal Ballester, IPG/ESO
%.KEYWORDS   MIDAS, help files, BACKGROUND/SMOOTH
%.PURPOSE    On-line help file for the command: BACKGROUND/SMOOTH
%.VERSION    1.0  25-JUL-1991 : Creation, PB
%----------------------------------------------------------------
\se
SECTION./SMOO
\es\co
BACKGROUND/SMOOTH					25-JUL-1991 PB
\oc\su
BACKGROUND/SMOOTH   input   output   [radx,rady] [niter] [visu]
	estimate interorder scattered light of an echelle spectrum
\us\pu
Purpose:    
            Compute the background of the echelle raw spectrum in the
            sampling space pixel-pixel using filtering and pixel
            replacement. This method does not require the table order.
\up\sy
Syntax:     
            BACKGROUND/SMOOTH   input output [radx,rady] [niter] [visu]
\ys\pa
            input     = input raw spectrum, sampled in pixel-pixel space
\ap\pa
            output    = computed background image
\ap\pa
            radx,rady = radius in x and y for smoothing. rady must
                        be somewhat larger than the order width.
                        Echelle keyword is BKGRAD, displayed by
                        SHOW/ECH if BKGMTD=SMOOTH. Default: 5,30
\ap\pa
            niter     = number of iterations. 
                        Echelle keyword is BKGNIT, displayed by
                        SHOW/ECH if BKGMTD=SMOOTH. Default: 10.
\ap\pa
            visu      = Possible values are YES or NO. If visu=YES
                        a graphic and a display window are created
                        if necessary. The graphic window shows the
                        background estimated for the central trace
                        of the input image. The display window shows
                        output image. Cuts value are read from
                        LHCUT descriptor of input.

                        Echelle keyword is BKGVISU, displayed by SHOW/ECHE \\
                        if BKGMTD=SMOOTH. Default: YES.
\ap\sa
See also: 
            BACKGROUND/ECHELLE, SCAN/ECHELLE, SUBTRACT/ECHELLE
\as\no
Note:       
            It is advised to properly set the keyword SCAN before
            running this command by using the command SCAN/ECHELLE.

            At the difference of the related command BACKGR/ECHELLE
            this command does not require the table order
            created by DEFINE/ECHELLE or DEFINE/HOUGH.
\on\exs
Examples:
\ex
            BACKGROUND/SMOOTH  ccd0008  bkg0008  
\xe \sxe
