% @(#)rectiffero.hlq	19.1 (ESO-IPG) 02/25/03 14:20:56
% @(#)rectiffero.hlq 1.0 (ESO-IPG) 12-11-1997
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1997 European Southern Observatory
%.IDENT      rectiffero.hlq
%.AUTHOR     AM, LSW Heidelberg, IPG/ESO
%.KEYWORDS   MIDAS, help files, RECTIFY/FEROS 
%.PURPOSE    On-line help file for the command: RECTIFY/FEROS
%.VERSION    1.0  12-NOV-97 : Creation, AM
%----------------------------------------------------------------
\se
SECTION./FEROS
\es\co
RECTIFY/FEROS                                            23-FEB-99 AM/OS
\oc\su
RECTIFY/FEROS  [flatimage] [straightimage] [centertable] [profileparams]
            RECTIFY curved orders without rebinning
\us\pu
Purpose:    
            Write the information from the curved orders in an
            easy to handle format. No rebinning occurs. For two
            fiber spectra the data are stored in separate files
            for each fiber.

\up\sy
Syntax:     
            RECTIFY/FEROS [flatimage] [straightimage] [centertable]
              [profileparams]

\ys\pa
            flatimage = name of input file
            
\ap\pa
            straightimage = root name of output file
             
\ap\pa
            centertable = name of table with polynomial coefficients
                          for order centers  

\ap\pa
            profileparams = profilewidth,off1,off2,fibermode
            Spatial profile parameters
                profilewidth = width of spatial profile
                off1, off2 = shift of profile center against
                             order center for both fibers
                fibermode = fiber mode
                valid values are
                0 for single fiber and
                1 for double fiber (default)

\ap\sa
See also: 
            DEFINE/FEROS, BACKGR/FEROS

\as\no
Note:       
            1) flatimage should be a background subtracted image for
               optimum results in further steps of the reduction.
               Background subtraction can be performed with the command
               BACKGR/FEROS.

            2) straightimage is the root name of the output image.
               The information is stored in three files for each fiber.
               Their names are generated from the root name and the
               appendices _C, _D, _X for single fiber spectra and
               _C1, _D1, _X1, _C2, _D2, _X2 for double fiber spectra.

            3) centertable must exist on disk. It can be created using
               DEFINE/FEROS.

            4) For single fiber spectra off1 must be zero and
               off2 does not matter. For double fiber spectra
               off1 and off2 are the shift of the profile center 
               of fiber 1 and fiber 2 against the centers
               determined with DEFINE/FEROS.

            5) The distinction between single fiber and double fiber is
               made via the keyword FIBER_MODE.
\on\exs


Examples:
\ex
            RECTIFY/FEROS flatimage straightened ? ?,?,?,0
            The information from the image named flatimage is
            stored in the images straghtened_C, straightened_D
            and straightened_X. The operation is performed in
            single fiber mode. Default values are used for all
            other parameters.
\xe\ex
            RECTIFY/FEROS flatimage straigh ? 13,-6,7,1
            The information from the image named flatimage is
            stored in the images named straigh_C1, straigh_D1
            straigh_X1, straigh_C2, straigh_D2, straigh_X2.
            The default value is used for centretable. The
            profile width is 13 pixels, the spectrum of the first
            fiber is shifted 6 pixels to the left and that of
            the second fiber 7 pixels tpo the right against
            the position retrieved from centretable. The operation
            is performed in double fiber mode.
\xe \sxe
