%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      map_imag.hlq
%.AUTHOR     KB, IPG/ESO
%.KEYWORDS   MIDAS, help files, MAP/IMAGE
%.PURPOSE    On-line help file for the command: MAP/IMAGE
%.VERSION    1.0  13-MAY-2004 : Creation, KB
%----------------------------------------------------------------
\se
SECTION./IMAG
\es\co
MAP/IMAGE						13-MAY-2004   KB
\oc\su
MAP/IMAGE in map out [lo,hi] [scale_flag]
	map an image via another image
\us\pu
Purpose:  
	Map an image via another image (similar to mapping via an ITT).
\up\sy
Syntax:    
          MAP/IMAGE in map out [lo,hi] [scale_flag]
\ys\pa
          in = input image 
\ap\pa
          map = the "mapping" image 
\ap\pa
          out = output image 
\ap\pa
          lo,hi = low, high map limits, applied to the input image,
	          defaulted to min, max of input image
\ap\pa
          scale_flag = SCALE (default) or NOSCALE
\ap\sa
See also:
          LOAD/IMAGE (cuts), SET/ITT
\as\no
Note:   
            The values of image `in' are used as indices (frame pixel no's)
          in [1,total_pixno] of the image `map' to provide the relevant
          values of image `out'. This is very similar to the mapping of
	  image data to a pixel range of [0,255] when displaying that image.
	    If scale_flag = NO, the NINT of the input values are used
	  directly as frame pixel no's of image `map'.
\on\exs
Examples:
\ex
          MAP/IMAGE in_2ima spectr result
            Map the data range of 2dim image `in_2ima.bdf' to the frame
	    pixel interval of 1-dim image `spectr.bdf'.
\xe \sxe
