% @(#)computweig.hlq	19.1 (ESO-IPG) 02/25/03 14:03:04 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      computweig.hlq
%.AUTHOR     KB, IPG/ESO
%.KEYWORDS   MIDAS, help files, COMPUTE/WEIGHTS
%.PURPOSE    On-line help file for the command: COMPUTE/WEIGHTS
%.VERSION    1.0  19-OCT-1983 : Creation, KB
%.VERSION    1.1  24-JAN-1994 : Correction, KB
%----------------------------------------------------------------
\se
SECTION./WEIG
\es\co
COMPUTE/WEIGHTS						24-JAN-1994  KB
\oc\su
COMPUTE/WEIGHTS input_specs [window_specs]
	determine weights for command AVERAGE/WEIGHTS
\us\pu
Purpose:   
          Determine weights for command AVERAGE/WEIGHTS.  A window (usually of
          the background) will be averaged over all input images. The weights
          will be computed acoording to deviation in each window from the mean.
\up\sy
Syntax: 
          COMPUTE/WEIGHTS input_specs [window_specs]
\ys\pa
          input_specs = ima1,ima2,... or imacatal.cat to specify the input
               images (imacatal.cat the name of the image catalog containing
               all input images)
\ap\pa
          window_specs = CURSOR or xsta,ysta,xend,yend to indicate the corners
               of the window we work in;
\\ 
               xsta,ysta,xend,yend as pixel numbers (@...) or world coords. of
               the window;
\\
               defaulted to CURSOR
\ap\no
Note:    
          For the CURSOR option, one of the input images must be displayed, so
          that the window can be determined interactively with the cursor
          rectangle.
\\
          The resulting weights will be displayed on the terminal and stored
          in a real descriptor WEIGHT (of 1 element) for each input frame.
\\
          This command does not work for 1-dim frames, however you can specify
          1-dim windows!
\on\see
See also:
          AVERAGE/WEIGHTS
\ees\exs
Examples:
\ex
          COMPUTE/WEIGHTS n1068,n1069,n1070 10.3,10.3,2000.,2000.
            Use a square window on all 3 input frames.
\xe\ex
          COMPUTE/WEIGHTS galax023.cat
            Work on all images contained in the image catalog `galax023.cat'.
            One of these images must be currently displayed, so that we can
            specify the window with the cursor rectangle interactively.
\xe \sxe
