% @(#)cmask_irac.hlq	19.1 (ESO-VLT) 02/25/03 14:22:37
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1992 European Southern Observatory
%.IDENT      cmask_irac2.hlq
%.AUTHOR     GFI, VLTI/ESO
%.KEYWORDS   MIDAS, help files, CMASK/IRAC2
%.PURPOSE    On-line help file for the command CMASK/IRAC2
%.VERSION    1.0  09-JUL-1992 : Creation, GFI
%----------------------------------------------------------------
\se
SECTION./CONT
\es\co
CMASK/IRAC2                                                    09-JUL-1992 GF
\oc\su
CMASK/IRAC2 ffield clnffield lthrshold,hthrshold [dispflag]
	create a mask of bad pixels using a flatfield. 
\us\pu
Purpose:     
	     Create a mask of bad pixels using a flatfield. 
\up\sy
Syntax:      
             CMASK/IRAC2 ffield clnffield lthrhold,hthrhold [dispflag]
\ys\pa
             ffield    = name of image file which is used to create the 
                         mask of bad pixels.
\ap\pa
             clnffield = name of file which contains the clean flatfield
                         having all bad pixels replaced by neighbouring
                         good pixels or set their pixelvalue to
                         hthrshold depending on dispflag.
\ap\pa
             lthrshold = minimum pixel value for good pixels; all pixels
                         having a pixel value smaller than lowthreshold
                         are considered as bad pixels
\ap\pa
             hthrshold = maximum pixel value for good pixels; all pixels
                         having a pixel value larger than highthreshold
                         are considered as bad pixels
\ap\pa
             dispflag  = R or H : R replaces all bad pixels by neighbouring
                         good pixels. H sets the pixelvalue of bad pixels
                         to highthreshold. Default is H. 
\ap\no
Note:        
             The pixelmask is stored in file GOODPX.bdf which is used by 
             the MIDAS command MASK/IRAC2. Good pixels in file GOODPX.bdf 
             are marked by 1 and bad pixels are marked by 0.
\on\exs
Examples:
\ex
             CMASK/IRAC2 flatfield cleanflatfield 3000,7000 R 
             Use frame flatfield to create pixelmask. All pixels of flatfield
             which have an intensity bellow 3000 or above 7000 are considered 
             to be bad. The bad pixels of the frame flatfield.bdf are replaced
             by neighbouring good pixels and the resulting image is stored 
             in the frame cleanflatfield.bdf which is displayed using the cut 
             levels of frame flatfield.bdf.
\xe\sxe

