SET PHASE

###
SET PHASE

            CLIC\SET PHASE [ABSOLUTE|RELATIVE] [ANTENNA|BASELINE]
            [INTERNAL|EXTERNAL] [ATMOSPHERE|NOATMOSPHERE] [FILE|NOFILE]
            [WVR|NOWVR] [TOTAL|NOTOTAL]
            [DEGREES|RADIANS] [JUMPY|CONTINUOUS]

        CLIC\SET PHASE ABSOLUTE|RELATIVE

            This command decides whether the phase calibration is applied or not
            to the data for plotting and writing the final UV table,  in  subse-
            quent  PLOT  and TABLE commands. ABSOLUTE means do not use the phase
            calibration determined by the SOLVE PHASE  command,  RELATIVE  means
            apply it.

        CLIC\SET PHASE INTERNAL|EXTERNAL

            Switch between two modes of phase calibration.

            INTERNAL  is  the  standard  mode.  In EXTERNAL mode the calibration
            curve from another receiver may be used (as stored  by  STORE  PHASE
            /RECEIVER  r);  on  the top of this a second order calibration curve
            may be determined (using SOLVE PHASE) and stored as usual. This does
            not erase any INTERNAL calibration curve previously stored.

            For example, using receiver 2:

            SET  PHASE  INTERNAL  RELATIVE:  use the phase curve determined from
            Rec. 2 only

            SET PHASE EXTERNAL ABSOLUTE: use the phase curve from Rec.  1  only,
            as stored with STORE PHASE /RECEIVER 1

            SET  PHASE EXTERNAL RELATIVE: use the phase curve from Rec 2, deter-
            mined on top of the phase curve Rec. 1, by  using  SOLVE  PHASE  and
            STORE PHASE with SET PHASE EXTERNAL in effect.

            SET PHASE INTERNAL  is recommended for Receiver 1,  SET PHASE EXTER-
            NAL for Receiver 2.

        CLIC\SET PHASE ANTENNA|BASELINE

            Switch between Antenna-based and Baseline-based phase  calibrations.
            This switch will be active for SOLVE PHASE (calibration curve deter-
            mination), STORE PHASE (calibration curve  storing  operation),  and
            SET  PHASE RELATIVE (application).  Both baseline-based and antenna-
            based calibration curves may be stored alongside in the data header,
            independently of each other. SET PHASE ANTENNA is recommended.

        CLIC\SET PHASE ATMOSPHERE|NOATMOSPHERE

            Force CLIC to use or not the real-time atmospheric phase correction.
            The atmospheric phase correction is based on monitoring  the  atmos-
            phere  water vapor emission using either the total power measured by
            the 1.3 mm receivers or the 22 GHz water vapor  radiometers.  It  is
            applied in real-time to each dump before computing the scan-averaged
            quantities (spectra and continuum); these are further corrected  for
            the  average  atmospheric phase, hence leading to phases essentially
            not modified, but to improved amplitudes (correction of the decorre-
            lation).  This  phase-corrected  scan-averaged  dump will be used by
            CLIC after SET PHASE ATM has been issued.

            The phase correction will NOT be used if it has  been  declared  in-
            valid  for  a given scan, using the command STORE CORRECTION, except
            if SET PHASE NOFILE is in effect. See these commands.

            Note that the continuum 1 sec dumps are not corrected in  real-time,
            and  are  therefore  not  affected  by the SET PHASE ATM command. To
            avoid any confusion, SET PHASE ATM forces SET AVER SCAN.

        CLIC\SET PHASE FILE|NOFILE

            Turn ON of OFF the effect of the STORE CORRECTION command.

            If SET PHASE ATMOSPHERE FILE, the information on the validity of the
            phase  correction declared by STORE CORRECTION will be used, and the
            phase correction will thsu be done only on scans validated by  STORE
            CORRECTION.

            If  SET  PHASE ATMOSPHERE NOFILE, this information will be bypassed,
            and the phase correction will be done for all scans.

        CLIC\SET PHASE WVR|NOWVR

            Switch ON or OFF the off-line atmospheric phase correction based  on
            the  WVR  data. All data (individual as well as scan-averaged dumps)
            are affected. It is necessary to have run the  WVR  command  before.
            SET PHASE WVR forces SET PHASE NOTOTAL.

        CLIC\SET PHASE TOTAL|NOTOTAL

            Switch  ON or OFF the off-line atmospheric phase correction based on
            the 1.3 mm total power monitoring. All data (individual as  well  as
            scan-averaged  dumps)  are affected. It is necessary to have run the
            MONITOR command before. SET PHASE TOTAL forces SET PHASE NOWVR.

        CLIC\SET PHASE DEGREE|RADIANS

            Select the unit in which the phases are plotted.

        CLIC\SET PHASE JUMPY|CONTINUOUS n

            Selects the way phases are determined.  With argument JUMPY  no  at-
            tempt  is  made  to  suppress 2pi jumps: the determination is always
            [-pi,pi].  With argument "CONTINUOUS n", the phase jumps are limited
            to  +/-  pi, that is the phase is always chosen in the range [previ-
            ous-pi,previous+pi], n being the number of points averaged  together
            to estimate the 'previous' phase (default is 1, higher values are to
            be used in noisy cases).