% @(#)testt2ccd.hlq	19.1 (ESO-SDAG) 02/25/03 14:16:58
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1994 European Southern Observatory
%.IDENT      testt2ccd.hlq
%.AUTHOR     RHW, SDAG/ESO
%.KEYWORDS   MIDAS, ccd package, linearity, CCD testing
%.PURPOSE    On-line help file for the command: TESTT2/CCD
%.VERSION    940620 RHW created
%.VERSION    940817 RHW Split in single procedures
%---------------------------------------------------------------------
\se
SECTION./CCD
\es\co
TESTT2/CCD                                                      14-Jul-1994 RHW
\oc\su
TESTT2/CCD in_tab [out_id] [select] [tim_int]
	Fit the linearity cursves and determine the shutter offset
\us\pu
Purpose:    
	Fit the linearity cursves and determine the shutter offset
\up\sy
Syntax:     
	TESTT2/CCD in_tab [out_id] [select] [tim_int]
\ys\pa
        in_tab =  input linerity table, resulting from running the test
                  TESTT1/CCD of the test TESTTA/CCD. For the obligatory 
                  columns in the input table see the help for these commands.
\ap\pa 
        out_id =  output identifier for the output of the test prodedure. 
                  The output (i.e. frames, listings and plots) will start 
                  with this identifier. Default is TRANS.
\ap\pa  
        select =  selection criterim to include/exclude entries in the 
                  transfer/linearity table (see below) from the tests. 
\ap\pa
        tim_int = interval in second within which the shutter offset will 
                  be dtermined. Default is -2,2.
\ap\no
Note:
        The command will determine the linearity curve and the shutter error 
        and the shutter offset. Entries in the linearity table not fullfilling
        the selection criteria select will now be selected out. From the 
        remaining entries in the table a linear fit is done to determine the 
        linearity curve for frames 1 and 2 and the shutter error.
\\
        Using the linearity data the fractional count rates are plotted 
        against the median counts, appying a shutter offset in the measured 
        exposure times. The real shutter offset is determined by the value 
        for which the fit give the minimum mean residual.\\
\\
        The full linearity and transfer test is done by the command TESTTA/CCD.
\on\op
Output:
        The command will store the graphics output in a the postscript file:
        `out_id'_lin2.ps.
\po\see
See also:   
        TESTTA/CCD, SET/CCD, SHOW/CCD, SELECT/TAB
\ees\exs
Examples:
\ex
        TESTT2/CCD TRANS ? :Var_diff.GT.1000
        Fit the linearity data in the table TRANS.tbl. Select the data for
        which the variance is less than 1000. Then fit the linearity and 
        transfer data.
\xe \sxe





















