% @(#)testd_ccd.hlq	1.1 (ESO-SDAG) 8/4/95 14:11:04
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1994 European Southern Observatory
%.IDENT      testd_ccd.hlq
%.AUTHOR     RHW, SDAG/ESO
%.KEYWORDS   MIDAS, ccd package, dark, testing
%.PURPOSE    On-line help file for the command: TESTD/CCD
%.VERSION    940621 RHW created
%.VERSION    940201 RHW update
%---------------------------------------------------------------------
\se
SECTION./CCD
\es\co
TESTD/CCD                                                     21-Jun-1994 RHW
\oc\su
TESTD/CCD in_cat [out_id] [dec_fac]
	Do a test on a catalogue of dark current frames
\us\pu
Purpose:    
	Do a test on a catalogue of dark current frames
\up\sy
Syntax:     
	TESTD/CCD in_cat [out_id] [dec_fac]
\ys\pa
        in_cat =  input (with the extension .cat) catalogue of frames to be 
                  combined; no default
\ap\pa 
        out_id =  output identifier for the output of the test prodedure. 
                  All output (i.e. frames, listings and plots) will start 
                  with this identifier. Default is DARK.
\ap\pa
        dec_fac = decimation factor for frame size reduction. Default is 16.
\ap\no
Note:
        This command requires the keyword BIASMEAN to be filled and hence 
        should be executed after the command TESTB/CCD.
\\
        The command does the following test on the frames in the input 
        catalogue.\\
        The input frames in the catalogue will be corrected for the bias 
        offset stored in the keyword BIASMEAN, normalized to one hour 
        exposure time and multiplied by the electron/ADU conversion factor 
        (computed by the command TESTT/CCD and stored in the keyword ADUCF).
        The output image is then resampled where each pixel of the rebinned 
        frame is the median of a dec_fac x dec_fac pixels area of the input 
        frame. The mean values and standard deviations of the rebinned 
        frames are displayed. \\
\\
        The command produces the following output information:\\
           `out_id'.bdf:         rebin of the combined dark frames in units 
                                 of e-/pix/hour"
           `out_id'.ps:          postscript file of the above"    
           `out_id'_cont.ps      contour plot of the above (same units)"
\\
        Instead of using a single number to correct for the bias, a mean
        bias frame, e.g. the one created by the command TESTB/CCD can be 
        used. For that fill the keyword BIASMEAN with the name of that
        bias frame.\\
\on\op
Output: The keyword 
\po\see
See also:   
        SET/CCD, SHOW/CCD, TESTB/CCD, TESTT/CCD
\ees\exs
Examples:
\ex
        TESTD/CCD dk_cat MYDARK 20
        Run the test procedure on the frames in the catalogue dk_cat. Combine
        all rebined frames into a frame MYDARK. Files for the image and
        contour plot are MYDARK.ps and MYDARK_cont.ps respectively.
\xe \sxe














