
1 Language
                             CLIC\ Command Language Summary

                 Continuum and Line Interferometric Calibration

    ATMOSPHERE      : Perform atmospheric calibration.
    COMPRESS        : Compress data.
    COPY            : Copy data.
    CURSOR          : Call the interactive graphic cursor.
    DROP            : Take a scan out of the current index.
    DUMP            : List some informations on the R spectrum.
    FILE            : Define the input/output files.
    FIND            : Search the input file for observations.
    FITS            : Write out spectra in FITS format (e.g. for CLASS).
    FLAG            : Flag data.
    GET             : Read a scan in the input file.
    HEADER          : Display some header information.
    IGNORE          : Ignore scans from the input file.
    LIST            : List header information about an ensemble of scans.
    MARK            : Force data to be treated as if flagged.
    MASK            : Cause some flags to be ignored.
    MINMAX          : compute extremal amplitudes in data
    MODIFY          : Edit and change the scan header (and data).
    MONITOR         : Process data for total power phase correction parameters.
    NEW_DATA        : Wait until new data present in input file.
    PLOT            : Plot data according to display options.
    PRINT           : Produces an output text file (PRINT BASELINE).
    RESIDUALS       : Plot residuals from last SOLVE operation.
    SET             : Enter a value for a parameter.
    SG_TABLE        : Create a UV data Table for mapping purposes.
    SHOW            : Show current value for a parameter.
    SOLVE           : Solve for calibration functions.
    STORE           : Store calibration functions.
    TABLE           : Create a UV data Table for mapping purposes.
    TAG             : Change the quality of scans in the output file.
    VARIABLES       : Enable/disable CLIC variables
    WVR             : Process data for WVR phase correction parameters.

2 INFO

        *** THIS HELP IS NOT UPTODATE ***

    Main modifications to CLIC since the MAR99 version:
  [24-sep-1999] FIND /RECEIVER is now available
  [24-sep-1999]  FIND  will  not be case sensitive for Source names and Line
    names.

        Main modifications to CLIC since the JUL98 version:
  [29-jan-1999] SET X TCHOP, TCOLD, TCUGSBIN, TDEWAR1,  ...,  TDEWAR3:  Plot
    some temperatures recorded in the receiver cabin.

  [13-jan-1999]  SET  PHASE ATM /ANT i j : The phase correction can be vali-
    dated independently  for the different antennas.

  [24-Nov-1998] SET X GROUNDS, EMISSION, AIRSS: new items to plot.

  [16-oct-1998] SET SCAN, FIND/SCAN: now accept a more general scan list  s1
    s2 s3 s4 ...

        Main modifications to CLIC since the APR98 version:
  [19-may-1998]  MODIFY FOCUS: to correct the phases according to the actual
    focus
      position used (should be used only on data prior to November 1996,
      or April 1998 for the few projects using HIGH lock).

  [28-apr-1998] SET SELECTION CONT /WINDOW * is now allowed  to  reset  fre-
    quency windows in the building of continuum tables from line subbands.

  [28-apr-1998]  LIST/SHORT  will  now  log  the  scan  numbers  is an array
    S_GROUP[2,N_GROUP]

  [25-apr-1998] LIST /OFFSET will give the list of position offsets  in  the
    current index (useful for a mosaic session).

    Main modifications to CLIC since the NOV97 version:
  [16-feb-1998]  STORE  CORRECTION  AUTO [tmin] : tmin is now accessible (in
    minutes)

  [30-jan-1998] SOLVE FLUX now gives the decorrelation  factor  relative  to
    the efficiencies logged in the scan headers.

  [24-nov-1997]  SOLVE  FIVE  [/PLOT]  now  possible for five point pointing
    scans.  SOLVE TOTAL/PRINT available.

    Main modifications to CLIC since the APR97 version:
  [08-oct-1997] FILE /DIRECTORY: Open a window to edit interactively the raw
    data file directories.

  [03-sep-1997]  SET  AMPLITUDE  UNSCALED: to reset the SET AMPLITUDE SCALED
    state (if needed).

  [26-aug-1997] SET Y ATMLIDITY: plots the validity of the phase  correction
    (values 0 or 1) as stored by STORE CORRECTION

  [26-aug-1997] SOLVE GAIN SCAN to solve gain scan by scan (instead of aver-
    aging all scans)

  [21-aug-1997] SET Y  WIND_AVERAGE,  WIND_DIR_AV,  WIND_TOP,  WIND_DIR_TOP:
    plots the wind variables (average, direction of average, maximum, direc-
    tion of maximum)

  [17-aug-1997] After a FIND the scans are now time ordered even across  the
    9999/0001 scan numbering boundary.

  [17-aug-1997] STORE CORRECTION SELF works like AUTO, but the phase correc-
    tion valitity is based on the amplitude of each scan, whether or not  it
    is a phase calibrator.

  [27-jul-1997]  GET n /HEADER to access the header vatiables of a given ob-
    servation without acessing the data itself (i.e. the header file only is
    needed).

  [25-jul-1997]  SET  OBSERVED  n1  n2 : use integer representation of dates
    made possible

  [22-jul-1997] variable SHORTLE available after FILE IN : contains the file
    name without directory or extension.

  [04-jun-1997] TABLE /RESAMPLE nchan rchan value inc V|F The syntax of /RE-
    SAMPLE has
     been changed for compatibility with CLASS: One may now enter the veloc-
    ity or frequency offset at the reference channel.

  [22-may-1997]  FILE /WINDOW Open data files via a file browser of the win-
    dowing system.

  [20-may-1997] SET PHASE ATMOSPHERE NOFILE bypasses  the  effect  of  STORE
    CORRECTION.

  [20-may-1997]  It  is  now  HIGHLY RECOMMENDED to use the extension ".hpb"
    when creating header files for calibration.

  [20-may-1997] FILE RAW [project] [date] [/WINDOW] This command may be used
    to  open  raw  data files residing in the directories IPB_DATA:, IPB_DA-
    TA1:, IPB_DATA2:, ... assuming they have kept teir  original  names  jj-
    mmm-yyy-pppp.ipb,  (with  date  and  project name), and to create header
    files for calibration.

        Main modifications to CLIC since the DEC96 version:

  [07-apr-1997] FITS [name] FITS will now create a fits  file  (named  name-
    l0i) with each selected line subband.

  [04-apr-1997] SET SELECTION LINE DSB This is now allowed in LINE mode, and
    means that the side band will be automatically selected when  the  TABLE
    command is issued, to match the desired frequency range.

  [03-mar-1997] SOLVE FLUX [NOREFERENCE] Use the default efficiencies rather
    than a reference source to set the flux scale.

  [03-mar-1997] SOLVE FLUX [BEST n] Average the results of  the  n  antennas
    giving the highest fluxes to compute the source flux.

  [12-feb-1997]  COPY  HEADERS|DATA [[NO]BASE] [[NO]]ANTENNA 1st argument is
    now mandatory; second and/or third select which calibration  section  is
    created.

  [08-jan-1997]  STORE CORRECTION GOOD|BAD|AUTO Store, in the header of each
    scan, whether the atmospheric phase correction will be applied when  SET
    PHASE ATMOSPHERE is used.

        Main modifications to CLIC since the NOV95 version:

  [29-nov-1996] SET WRITE DATA|NODATA now renamed to SET COPY DATA|NODATA.

  [12-nov-1996]  STORE QUALITY qual ; change the data quality in the current
    index (equivalent to a loop of TAG commands).

  [12-nov-1996] LIST /VARIABLE variables /FORMAT formats : lists the  header
    variables  for scans in the current index; may also be used with /SHORT.

  [04-nov-1996] SOLVE POINT, SOLVE FOCUS, SOLVE GAIN, SOLVE DELAY  now  have
    an option /PRINT to write an OBS procedure in directory INTER_OBS:

  [17-oct-1996]  SOLVE  HOLOGRAPHY  [FREE r1 r2..] : some panel rings may be
    released from the paraboloid fit.

  SET Y AZ_ERR and EL_ERR ; AZ_PH and EL_PH : plot pointing errors, and hor-
    izontal coordinates of the phase tracking center.

  [04-jun-1996]
  SET Y AZ_ERR and EL_ERR ; AZ_PH and EL_PH : plot pointing errors, and hor-
    izontal coordinates of the phase tracking center.

  [27-may-1996]
  MODIFY ANTENNA|BASELINE /OFFSET 89|96 The argument to /OFFSET is  mandato-
    ry, and selects either the old (89) or the new (96) standard station co-
    ordinates.

  [14-may-1996]
  ATMOSPHERE now checks the efficiencies on phase calibrators, assuming  the
    flux in the header is correct.

  [10-may-1996]
  -  FIND /SOURCE s1 s2 .. sn is now supported.  - FIND /SCAN n1 n2 will now
    loop across 9999/0000 if n1 > n2.

  [29-apr-1996]
  - CLIC is now dimensioned for FIVE antennas.

  [29-apr-1996]
  - SET X|Y PARAL_ANGLE:
     The parallactic angle can be plotted.

  [14-apr-1996]
  - SET COPY DATA|NODATA:
     A new data access mode. See HELP SET COPY.
  - SET BASELINES ALL, SET ANTENNAS ALL:
     Use all the baselines, in the data by default. See HELP SET BASELINES,
  - SET SUBBANDS ALL, SET SUBBANDS LINE, SET SUBBANDS CONT:
     Use all the subbands in the data, switch  between  line  and  continuum
    subbands.
  - SET PHASE EXTERNAL|INTERNAL and STORE PHASE /RECEIVER:
     A  new  mode  to  use the other receiver as a phase reference for phase
    calibration. See HELP SET PHASE,  HELP  SOLVE  PHASE.   See  also  STORE
    PHASE.

  [07-mar-1996]
  - Command PHASE CONTINUOUS:
     to recover from a real time problem due to jumps of the LO2.

  [07-feb-1996]
  - Command MODIFY AXES:
     to  correct  for non intersection of the azimut and elevation axes. See
    HELP MODIFY AXES. SOLVE BASELINE has also been  modified  to  solve  for
    this parameter using elevation as an X axis.

  [17-jan-1996]
  - Command MODIFY BUG 1:
     to correct for a calibration bug affecting data between 11-nov-1995 and
    09-jan-1996.

  [20-dec-1995]
  - Command  PLOT /NOFRAME pen
     used to overlay a plot with the previous one, using a different  color.

  [28-nov-1995]
  - SET PROJECT resets the RF mode to OFF.

        Main modifications to CLIC since the JAN95 version:

  [09-nov-1995]
  - Implementation of the atmospheric correction.
     See command MONITOR, and SET PHASE ATMOSPHERE.

  [08-sep-1995]
  - Command SET SORT RECEIVER|SCAN

  [25-jun-1995]
  - Command SET TIME_ORIGIN

  [08-jun-1995]
  - command SET UV_RANGE:
     data will not be plotted ouside of this range.



1 ATMOSPHERE
        CLIC\ATMOSPHERE [DETECTOR|CORRELATOR] [/NOWRITE]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Recompute  the  atmospheric (transparency) calibration from the data and
    the informations provided by the SET ATMOSPHERE command.  All  scans  in
    the current index are processed:


      -  Atmospheric  calibration scans (CALI): compute calibration tempera-
        ture Tcal, using either the total power DETECTORs or  the  continuum
        CORRELATOR to measure the atmospheric emission. Default is DETECTOR.
        The data on the atmospheric monitor (the 1.3 mm) receiver will  also
        be  used to compute the phase correction factors (see also the MONI-
        TOR command).

      - Apply the new model to the subsequent observations  and  write  (up-
        date)  the recalibrated data if option /NOWRITE is not present. This
        is done until a new calibration is found.

1 COMPRESS
        CLIC\COMPRESS timemax uvmax

    *** THIS HELP IS NOT UPTODATE ***

    Compress data in the current index by averaging  successive  records  in
    individual  scans.  'timemax'  is  the  maximum  averaging  time in sec-
    onds.  Data with baseline orientation differing by  more 'uvmax'  in me-
    ters   in   the  UV  plane  are  not  averaged,  as well as data flagged
    differently.

    Defaults for timemax and  uvmax  are  60  seconds  and  7.5  meters  re-
    spectively.    An   output  file  must  have  been opened to receive the
    compressed data.

    Use command COPY rather than COMPRESS to copy the whole current index to
    a new file.

    For  data  taken after September 1992 (new correlator), the command will
    only  compress  the  temporal  data (data header   and   continuum  sub-
    bands),  since  the  spectral data is already compressed to 1 record per
    scan.

1 COPY
        CLIC\COPY HEADERS|[NO]DATA [[NO]BASE] [[NO]ANTENNA]

    Copy the content of the current index to the ouput file.  The first  ar-
    gument  is  mandatory  and controls whether the data section is actually
    written in the output file or not.

    COPY DATA selects the old mode, in which the data as well as the headers
    are copied in the output file.

    COPY  HEADERS selects the RECOMMENDED mode in which only the headers are
    copied in the output file. In this new so-called "header file", the data
    sections  are not written but replaced by pointers to the original file.
    This way, the data file, originally written at Plateau de Bure, is later
    only  used  in  a read-only mode. All further calibrations are stored in
    the (much smaller) header file. It is HIGHLY RECOMMENDED to use the  ex-
    tension ".hpb" for the new file containing the headers.

    Example:
    !
    ! Original file is "14-apr-1996-f081.ipb".
    ! Create a header file:
    !
    file in 14-apr-1996-f081.ipb
    find
    file out f081-b2.hpb new
    copy headers
    !
    ! Now open the f081-b2.hpb for input/output
    !
    file both f081-b2
    find
    solve phase /plot
    store phase
    !
    ! ... and so on as usual
    !

    When  the  header  file is opened for input, CLIC will look for the data
    sections in the original (read-only) data file.  The original data  file
    may  be  kept locally or reside in any directory, which is pointed to by
    one of the logical names "IPB_DATA:", "IPB_DATA1:" to "IPB_DATA9:".  The
    original file name MUST BE UNCHANGED, apart from the extension.

    Most commands are available in this mode, even commands that affect data
    amplitudes phases such as ATMOSPHERE, MODIFY BASELINE or  MODIFY  DELAY.
    The phase factors are kept in the headers and applied only when the data
    will be later read again.

    There need not be a one  to  one  correspondence  between  the  original
    ".ipb" file contents and the ".hpb" header file. The header file may re-
    fer to only part of the scans in the .ipb file (e.g. omit  the  IFPB  or
    POINT scans), and it may refer to several .ipb files (e.g. data from two
    consecutive days).

    Arguments [NO]BASE and  [NO]ANTENNA  control  whether  respectively  the
    baseline and antenna-based calibration sections are written in the head-
    er file. Antenna-based calibration is now the default and  omitting  the
    baseline-based  sections saves a lot of space. Do not forget to use COPY
    HEADERS BASE if you foresee you will need baseline-based calibration.

1 CURSOR
        CLIC\CURSOR [mode]

    Call the interactive cursor, if  available  on  your  graphic  terminal.
    This  enables  you  to  measure  point coordinates and perform some data
    editing on the result of a PLOT command.

    After pressing any key, one of the data points is selected according  to
    the argument `mode'. In mode D the closest data point from the cursor is
    selected; in mode X (the default) the data point with closest X  coordi-
    nate  is selected; in mode Y the data point with closest Y coordinate is
    selected.

    The following actions are possible:

      - Press any key to get the coordinates of the selected point.

      - Press 'H' to display some header information of  the  selected  scan
        (as with LIST command).

      - Press 'K' to delete the selected point from the current plot buffers
        (type PLOT SAME to replot the buffers). This may be very  useful  to
        remove  corrupted  points from the buffers e.g. before fitting cali-
        bration curves.

      - Press 'N' to initiate a new range for  Ignore,  Tag,  and  Flag (see
        below).  This works only with time-like plots,  and  is to  be  used
        preferrably  with coordinates that are monotonous functions of  time
        (scan number, observation number, time, ...)

      -  Press  'I'  to ignore all scans in the current  range (initiated by
        'N').  This is equivalent to typing the IGNORE command for the  same
        scans.

      -  Press  'T'  to  tag  all scans in the current range  (initiated  by
        'N').  This is  equivalent  to typing the TAG command for  the  same
        scans.   You  will be prompted for a quality code in the range  0 to
        9 (see TAG command). The quality codes  are  stored  in  the  output
        file, which must be equal to the input file.

      -  Press  'F'  to  flag all records in the current range (initiated by
        'N').  You will be prompted for a list of flags (see FLAG  command).
        These flags will affect the baseline or antenna corresponding to the
        box you are pointing at. They will be stored  in  the  output  file,
        which must be equal to the input file.

      - Press 'E' to exit the cursor mode.

1 DROP
        CLIC\DROP observation [version]

    Remove  an observation from the current index. The  version  number must
    be specified if it is not the last in the input file, even if it is  the
    last  in  the  current  index. The observation will be ignored until the
    next FIND command. See also the IGNORE command.

1 DUMP
        CLIC\DUMP arguments [/PLOT]

    A debugging command that lists a certain number of informations  on  the
    last read observation.

      -  DUMP  HEADER argument: lists a certain number of informations about
        the observation header.  Argument may be ALL, HEADER, GENERAL, POSI-
        TION,  INTERFEROMETER,  FREQUENCY,  ATMOSPHERE,  MONITOR, CONTINNUM,
        LINE (with optional argument 'iband', dump  only  subband  'iband'),
        SCANNING,  IC (Instrumental calibration), AIC (Antenna-based Instru-
        mental calibration), PC (RF  Passband  calibration),  APC  (Antenna-
        based RF Passband calibration), DD (Data Descriptor), WVR (Water Va-
        por radiometer), PHASES.

      - DUMP DATA: lists the data associated parameters.

      - DUMP FILE: lists information about the input and output files.

      - DUMP INDEX: lists information about the current index.

      - DUMP VIRTUAL: gives  the  virtual  memory  and  paging  file quotas.

      - DUMP SIZE: gives the values of a number of key variables that define
        the size of the problem.

      - DUMP CONTINUUM: dumps the continuum data.

      -  DUMP LINE c1 c2:  dumps the spectral data from channel  c1  to  c2.
        DUMP LINE c1 c2 /PLOT  will  plot  the  spectral data amplitude as a
        function of channel number.

    DUMP DATA, DUMP CONTINUUM and DUMP LINE will return the  phase-corrected
    or  uncorrected  data,  depending on the last SET PHASE ATM or SET PHASE
    NOATM command issued.

1 FILE
        CLIC\FILE [type] [name] [NEW] [/WINDOW]

    Selects the input and output files.

    FILE IN Name            defines the input file.
    FILE OUT Name [NEW]     defines the output file, and
                            initializes it if NEW is precised.
    FILE BOTH Name          selects the same file for input and output.

    The default filename extension is ".hpb". With FILE  IN,  the  extension
    ".ipb"  is also checked. This behaviour can be changed using the command
    SET EXTENSION. The character variable SHORT_FILE is  available  after  a
    FILE  IN: it contains the file name without directory or extension. With
    option /WINDOW (if the windowing system is active), a  panel  window  is
    created  and the file name may be selected via a file browser ('Name' is
    then used as a filter). Pressing GO will then open the file.

        CLIC\FILE RAW [project] [date] [/WINDOW] [/DIRECTORY]

    FILE RAW [Project] [Date] will select the first file residing in the di-
    rectories  IPB_DATA:, IPB_DATA1:, ..., IPB_DATA9:, which matches the op-
    tionally given project name and date, following the standard  name  con-
    vention  used  at Plateau de Bure (jj-mmm-yyyy-proj.ipb, or YMJJPROJ.IPB
    for CDROMs). The names of all the NFILE files matching the project  name
    and  date  are put in character array DATAFILE[NFILE] (the integer vari-
    able NFILE is also defined).

    FILE RAW [Project] [Date] /WINDOW (if the windowing  system  is  active)
    will  create  a  panel window with a menu to select one of the available
    files, and two action buttons, one for opening the file, the  other  for
    creating a header file for calibration.

    FILE  RAW /DIRECTORY (if the windowing system is active) creates a panel
    window with a menu to edit the list of raw data file directories  (logi-
    cal names IPB_DATA:, IPB_DATA1:, ...)

1 FIND
        CLIC\FIND [APPEND] [NEW_DATA] [/LINE lname] [/NUMBER n1 n2]
        [/SCAN s1 s2 [s3 s4 ...]] [/OFFSET o1 o2] [/PROCEDURE proc1 [...]]
        [/QUALITY q] [/SOURCE s1 s2 ... sn] [/TELESCOPE tel] [/TYPE type]
        [/RECEIVER number]

    FIND performs a search in the input file to build a new index, according
    to selection criteria defined by the SET command.  These criteria can be
    listed  with the SHOW CRITERIA command. They may be temporarily modified
    by the following options :

    /LINE lname          search by line name
    /NUMBER n1 n2        search for the specified range of obs. numbers
    /SCAN s1 s2 [s3 s4]  search for the specified range(s) of scan numbers
    /OFFSET o1 p2        search for these offsets
    /PROCEDURE p1 .. pn  search by procedure name(s)
    /QUALITY q           search for the data of quality better than q
    /SOURCE s1 ... sn    search by source name
    /TELESCOPE tel       search for the specified telescope name
    /TYPE type           search by source type
    /RECEIVER number     search by receiver number

    FIND /SCAN s1 s2 [s3 s4 ..] will loop across the 9999/0001 border if  s1
    (s3)  is larger than s2 (s4). Using several source names in FIND /SOURCE
    is now supported. Source name and Line name matching is not case  sensi-
    tive.

    The current index is ordered by scan number or receiver number depending
    on the last command SET SORT issued. However the scan ordering  is  done
    modulo  9999  (i.e. the time order is respected if the 9999/0001 transi-
    tion occurs in the current index).

    FIND by default overwrites the current index.  Found observations may be
    appended  to the current index by specifying the argument APPEND; an in-
    dex compression occurs to avoid duplication of scans in the index.

    FIND does not return an error if the index is empty,  but  the  variable
    FOUND  is set to 0. FOUND is always set to the number of observations in
    the index. The command IGNORE can be used to declare a list of  observa-
    tions to be ignored by the FIND command.

    Argument  NEW_DATA  can be used to wait until new data is present in the
    input file.  This possibility is intended for sites where data  acquisi-
    tion is done in CLIC format (Plateau de Bure) to use CLIC as an automat-
    ed quick look facility.  The behaviour is similar  to  that  of  command
    NEW_DATA,  but all selection criteria are considered and no switching to
    a new observation type occurs.

2 /POLAR
        CLIC\FIND /POLAR argum

    Find scan corresponding to a given state, where X and I  indicate  cross
    and  direct  switches  for  (physical)  antenna i. Possible choices are:
    XXXXXX IIIIII XIXIXI IIXXII IXXIIX XXIIII XIIXIX IIIIXX IXIXXI


1 FITS
        CLIC\FITS name

    Create for each selected line subband a FITS file containing  the  spec-
    tral  data.  The  fits file names are e.g. name-l01.fits, name-l02.fits,
    name-l03.fits (one fits file is created for each subband),  if  one  has
    specified SET SUBBAND L01 L02 L03.

    For  autocorrelation data, the data from all antennas are averaged.  For
    correlation data, the complex data from all baselines are  averaged  and
    the real part of the resulting visibility is used.

    This  command allows to easily write out spectra from point-like sources
    to be further analyzed in CLASS. Reading the data in CLASS  and  writing
    them in a CLASS-format file can be done with a procedure like:

        FILE OUT myfile NEW
        FITS READ name-l01.fits
        WRITE next_obs
        FITS READ name-l02.fits
        WRITE next_obs
        etc..

1 FLAG
        CLIC\FLAG f1 f2 ... [/ANTENNA a1 [...]] [/BASELINE b1 [...]]
        [/RESET]

    Flag the current record (obtained by GET /RECORD) with flags f1 f2 ...

    Flags  may be relative to antennas or baselines. One of the options /AN-
    TENNA or /BASELINE, with lists of antenna numbers or baseline  names  as
    arguments, must therefore be given. /ANTENNA ALL will flag all antennas,
    /BASELINE ALL will flag all baselines.  These are the default.

    Supported flag names are:

    - C01 to C08 for bad individual continuum correlator subbands
    - L01 to L08 for bad individual spectral correlator subbands
    - DATA for bad data
    - TSYS for too high system temperature (antenna based only)
    - LOCK for out of lock local oscillator (antenna based only)
    - POINTING for poor pointing (antenna based only)
    - SHADOW for antenna being shadowed by another antenna (ant. based only)
    - SATURATION for too high total power on a particular antenna
    - TIME for time discontinuity
    - DOPPLER for doppler discontinuity
    - REDU for data reduction

    Use option /RESET to suppress flags that were accidentally set.

    FLAG with no argument lists the flags of the current record.

    This command may be used in a MODIFY DATA or MODIFY RECORD loop, to flag
    data.  If  more  than one record is to be flagged, command STORE FLAG is
    HIGHLY RECOMMENDED.

1 GET
        CLIC\GET [n|FIRST|NEXT] [/RECORD r] [/HEADER] [/ATM]

    GET loads the observation number n. If n is absent, the  previous  (last
    read)  observation  is  recovered.  If  instead  of a number the keyword
    "FIRST" is given, the first observation of the current index is  loaded.
    With "NEXT", the next observation in the current index is loaded.

    If  option  /RECORD  is present, only record r is loaded. Otherwise, the
    average record is loaded; it contain by default the uncorrected data un-
    less option /ATM is present, in which case the phase-corrected record is
    loaded if it exists.

    If option /HEADER is present, only the scan header  is  read.   No  data
    record  is  accessed. This command does not access the data file if only
    the header file is available.

1 HEADER
        CLIC\HEADER

    Displays some header information on the current observation.

         General information line
             Observation number
             Scan number
             Project Id
             Source name
             Source type (Object or Phase calibrator)
             Procedure name
             Interferometer configuration
             Date of observation
             UT of observation
             Hour angle

         Position information line
             RA or L : right ascension or longitude (or azimuth)
             DEC or B : declination or latitude (or elevation)
             Epoch if equatorial coordinates are used
             Offsets in current units
             Type of coordinate (Eq, Ga, Ho)
             Flux of the source

         Quality information line
             Quality code
             Flag
             Receiver number
             Number of dump
             Azimuth
             Elevation

         Spectral line information line
             Line name
             Rest frequency
             Sideband
             Doppler correction
             Source velocity

         Correlator information, for each subband
             Logical name
             Width (MHz)
             Central IF (MHz)
             Physical unit
             Quarter [for new receivers only]
             Polarization [for new receivers only]
             Narrow-band correlator input [for new receivers only]

         Interferometer status, for each antenna
             Antenna number
             Station
             Azimuth, Elevation, Focus corrections
             Receiver temperature (K)
             Image rejection (dB)
             Water (mm)
             System temperature (Tsys)

1 IGNORE
        CLIC\IGNORE list_of_observations

    This command can be used to declare the specified list  of  Observations
    (from the input file) to be ignored in all FIND operations.  They effec-
    tively become invisible to CLIC (except in a LIST IN command),  until  a
    FILE  IN command is typed again.  The input file is not physically modi-
    fied however.  The list of observation can be given using the same  for-
    mat as with a FOR command (e.g. n1 n2 n3 TO n4 BY n5 n6 TO n7).

1 LIST
        CLIC\LIST [key] [/SHORT] [/BRIEF] [/LONG] [/OUTPUT file]
        [/PROJECT] [/SOURCE] [/VARIABLE var_list [/FORMAT format_list]]
        [/OFFSET] [/FLAG]

    This  command  lists  header information of an ensemble of observations.
    LIST is used for a quick look to observation headers, in a more or  less
    detailed  format.  'Key'  specifies the file to be listed: IN or OUT; if
    'Key' is not present, the current index (as determined by the last  FIND
    command)  is  listed. The list will be ordered by scan numbers or by re-
    ceiver number, depending on the command SET SORT SCAN|RECEIVER. For each
    observation, a medium-sized format is used by default. This can be modi-
    fied using the options:

    LIST /BRIEF

        Brief format (observation numbers and version numbers only).

    LIST /LONG

        Long format (not allowed for the output file). Several lines can  be
        listed for each scan, that can be selected using the SET FORMAT com-
        mand.

    LIST /SHORT

        Gives only one line for a set of scans with  same  parameters;  IFPB
        and  CALI  are not listed. The first and last scan of each group are
        logged in array S_GROUP[2,N_GROUP], N_GROUP is the number of groups.

    The  output of the LIST command can be written in an output file instead
    of the terminal using the "/OUTPUT File" option.  LIST can also be  used
    to to list a number of specific parameters:

    LIST /FLAG

        List data flags for current index.

    LIST /PROJECT

        List the observing projects in the current index. The number of dif-
        ferents offset positions is in variable N_OFFPOS, the offsets are in
        array OFFPOS[2,N_OFFPOS].

    LIST /SOURCE

        List  the  observed sources in the current index. The number of dif-
        ferent source is in variable N_SOURCE, the source names in character
        array C_SOURCE[N_SOURCE].

    LIST /OFFSET

        List the observed position offsets for the current index.

    LIST /VARIABLE var_list

        List  the  value  of  the header variables given in var_list.  These
        variables must have been defined by command  VARIABLE.  If  "/FORMAT
        format_list" is also given, each variable in the list is printed ac-
        cording to the associated format item. The format items  must  match
        the variable types. With option /SHORT, a line is printed only if at
        least one of the variables has changed, and is preceded by the  cor-
        responding scan number range.

        Example: LIST /VARIABLE FREQUENCY IFCEN[2] /FORMAT f10.3 f6.3 /SHORT
        gives the sky rest frequency and the central IF frequency of subband
        L02,  as  a function of scan numbers. These variables must have been
        previoulsy defined using VARIABLE RF and VARIABLE LINE.


1 MARK
        CLIC\MARK f1 f2 ...  [/ANTENNA i ][/BASELINE ij] [/RESET]

    *** THIS HELP IS NOT UPTODATE ***

    Set the antenna or baseline mark words.

    To decide whether data should be used, CLIC uses the logical OR  of  the
    data  flag words with the corresponding mark words.  Thus data from some
    subbands may be [temporarily] ignored even if unflagged.  Flags  may  be
    relative   to   antennas   or  baselines.  /ANTENNA or /BASELINE must be
    given, with antenna numbers or baseline  names  as  arguments.   Several
    antennas and baselines may be given simultaneously.  Use /ANTENNA ALL or
    /BASELINE ALL for all antennas or all baselines.

    Flag names f1 f2 ...  are  alphanumeric  codes.   Valid  codes  are sub-
    band   names   (C01   to C10, L01 to L06), DATA, POINTING, SHADOW, TSYS,
    SATURATION and LOCK and REDU

    Use option /RESET to reset flags that were accidentally set in  the mark
    words.

    MARK with no arguments (just options)  will  list  the  MARK  words cur-
    rently in use.

1 MASK
        CLIC\MASK f1 f2 ...  [/ANTENNA i1 [...]] [/BASELINE  b1 [...]]
        [/RESET]

    This commant causes some flags to be ignored by setting the  antenna  or
    baseline  "mask"  words.  Data flagged will normally not be processed by
    calibration commands. However flags set in the corresponding  mask  word
    will be ignored, causing data to be processed anyway. Flags may be rela-
    tive to antennas or baselines. One of the options /ANTENNA or  /BASELINE
    must therefore be given, with antenna numbers or baseline names as argu-
    ments.

    Supported flag names are:

    - C01 to C08 for bad individual continuum correlator subbands
    - L01 to L08 for bad individual spectral correlator subbands
    - DATA for bad data
    - TSYS for too high system temperature (antenna based only)
    - LOCK for out of lock local oscillator (antenna based only)
    - POINTING for poor pointing (antenna based only)
    - SHADOW for antenna being shadowed by another antenna (ant. based only)
    - SATURATION for too high total power on a particular antenna
    - TIME for time discontinuity
    - DOPPLER for doppler discontinuity
    - REDU for data reduction

    Use option /RESET to remove flags from the mask works.

    MASK with no arguments will list the mask words currently in use.

1 MINMAX
        CLIC\MINMAX

    This command is used to compute extremal amplitudes on the  current  ob-
    servation  (loaded  e.g.  with GET). It processes all continuum and line
    data, USB and LSB.  Results for the continuum  subbands  are  stored  in
    variables  C_MAXAMP_U,  C_MINAMP_U,  C_MAXAMP_L, C_MINAMP_L, and results
    for the line subbanbds in variables L_*.

    This command may be used in a MODIFY DATA  or  MODIFY  RECORD  loop,  to
    search for bad data.

1 MONITOR
        CLIC\MONITOR delta_time

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    This  command  is used to prepare the atmospheric phase correction based
    on the total power monitor (normally done at 1.3  mm).  It  process  all
    scans in the current index and performs two operations.

    First, it processes the calibration scans to compute the correction fac-
    tors. i.e. the change of path length for a given change in emission tem-
    perature of the atmosphere at the atmospheric monitor frequency (normal-
    ly 1.3 mm, i.e. using Receiver 2 data).  These  correction  factors  are
    then written in subsequent scans, until a new calibration is found.

    Second, the scans in the current index are grouped in intervals of maxi-
    mum duration `delta_time' (in seconds); source changes will also be used
    to separate intervals. In each interval a straight line is fitted in the
    variation of atmospheric emission as a function of time; this line  will
    be  the reference value for the atmospheric correction, i.e. the correc-
    tion at time t is proportional to the difference between the atmospheric
    emission  at  time t and the reference at time t. This scheme is used to
    avoid contaminating the correction with total power drifts of  non-atmo-
    spheric  origin  (changes  in  receiver  noise  and gain, and changes in
    ground noise).

    MONITOR 0 will use for each scan the average of the atmospheric emission
    as the reference value. This will cause the correction to average to ze-
    ro in one scan: the average phase is not changed, only the coherence  is
    restored  leading  to an improved amplitude (this is what is done in the
    correlator at the Plateau de Bure to compute the scan-averaged  spectral
    and continuum quantities).

1 MODIFY
        CLIC\MODIFY Item [Values...]

    This  is  a  command to change some parameters relevant to data acquisi-
    tion, such as baseline values, time, position of  phase  center,  delay,
    etc.  MODIFY applies to the current index. An output file must be opened
    (it may be equal to the input file).

    Note the special behaviour of MODIFY HEADER,  MODIFY  DATA,  and  MODIFY
    RECORD,  which  execute an external script to modify the data and/or the
    header, hence giving to the user a large  flexibility  in  the  possible
    changes.

    The  MODIFY command is to be used with great caution, as it can directly
    affect the data. There's no telling what can happen if this  command  is
    wrongly used. So please consult an expert before any action.

2 ANTENNA
        CLIC\MODIFY ANTENNA a1 x1 y1 z1 [a2 x2 y2 z2 ...] [/OFFSET 89|96]
        CLIC\MODIFY ANTENNA FITTED

    Modify the vector coordinates for antenna a1 to be: x1, y1, z1 (meters),
    and the phases accordingly.  Keyword FITTED will load the antenna  coor-
    dinates the most recenty found by the SOLVE BASELINE command.

    Use option /OFFSET 96 to enter antenna coordinates offsets instead (i.e.
    offsets from the new (1996) standard antenna positions in  STATION.DAT).
    For the old procedures use /OFFSET 89.

2 AXES_OFFSET
        CLIC\MODIFY AXES_OFFSET a1 x1 [a2 x2 ...]

    Correct  the phases for the offset of the elevation axis with respect to
    the azimuth axis. This effect,  if  different  for  different  antennas,
    causes a phase offset proportional to frequency and to the cosine of el-
    evation.  a1 is the antenna number, x1 the offset between  axes  in  me-
    ters.  The actual values should be at most 1 mm, and may be measured us-
    ing the command SOLVE BASELINE, using SET X  ELEVATION  in  addition  to
    Hour angle and declination.

2 BASELINE
        CLIC\MODIFY BASELINE b1 x1 y1 z1 [b2 x2 y2 z2 ...] [/OFFSET 89|96]
        CLIC\MODIFY BASELINE FITTED

    Modify the vector coordinates for baseline b1 to be:   x1,  y1,  z1 (me-
    ters),  and  the  phases  accordingly.   Keyword FITTED  will  load  the
    baseline coordinates the  most  recenty  found  by  the  SOLVE  BASELINE
    command.

    Use option /OFFSET 96 to  enter  baseline  coordinates  offsets  instead
    (i.e.   offsets  from  the new (1996) standard antenna positions in STA-
    TION.DAT).  For old procedures, referring to the old (1989) station val-
    ues, use /OFFSET 89 instead.

2 BUG
        CLIC\MODIFY BUG number

    This  command  is  reserved for the correction of nasty bugs in the data
    acquisition.  The number is used for identification.

    Current accepted values:

      1 Affecting data taken between 11-nov-1995 and  09-jan-1996.   Bug  in
        RDI  found by S.Guilloteau. The continuum data was erroneously cali-
        brated in the real-time aquisition. As result,  the  continuum  data
        did  not  agree with the average of the spectral data.  For instance
        plotting data with "set sub C02 L02" as a  function  of  time  gives
        different  results for C02 and L02. The result would affect line in-
        tensities if, as is usually the case, the amplitude  calibration  is
        done with the continuum subbands.

        Correction:  the  current index should contain both atmosphere cali-
        brations and correlation data; the data file should be open for both
        input  and output.  This command should not affect data taken before
        11-nov-1995 and after 09-jan-1996; be careful for the last day since
        the hour is not checked, and RDI was corrected at 3pm.

      2 No other bug so far!

2 CABLE
        CLIC\MODIFY CABLE arguments

    Modify the cable phase.

    MODIFY  CABLE a1 a2 a3 a4 a5 a6 corrects for a permutation of the cables
    to the phasemeters. Phasemeters 1 2 3 4 5 6 are assumed to be  connected
    to the antennas a1 a2 a3 a4 a5 a6.

    MODIFY  CABLE  CONTINUOUS  corrects  the  cable  phases to be continuous
    (should use only the correlations, without  LOCK  flag,  for  which  the
    phases have a meaning).

    MODIFY  CABLE  FACTOR  f asssume the phase correction applied  has to be
    multiplied by f (replaces the old MODIFY CABL2).

2 DELAY
        CLIC\MODIFY DELAY a1 d1  [a2 d2 ...] [/OFFSET]

    Modify the delay for  antenna  a1  to  be d1 (nanoseconds), and   recom-
    pute the  phases  accordingly.

    Use  option  /OFFSET to enter delay changes with respect to the previous
    values.

2 DOPPLER
        CLIC\MODIFY DOPPLER

    Computes the Doppler velocity correction, in case it was not  taken into
    account  at  the  time of observing.  The LO2 frequency in the header is
    assumed to be the frequency actually used.  A warning   is   issued   if
    the  LO1  frequency in the header is not coherent with the LO2 frequency
    (which means the phase tracking might be in error, since  it  uses  that
    LO1 frequency).

    The  frequencies  and line names introduced by SET FREQUENCY are used to
    define the velocity scales for each subband/sideband.

2 FLUX
        CLIC\MODIFY FLUX value

    Modify the flux of the source as stored in the header.  In SET AMPLITUDE
    SCALED  mode,  the amplitude will be divided by this number before plot-
    ting.

2 FOCUS
        CLIC\MODIFY FOCUS [antenna1 value1 antenna2 value2 ...]

    Correct the phases for the offsets in focus, introduced to optimize  ef-
    ficiency. antenna1 is the antenna number, value1 the focus offset in mm,
    and so on.  The  phases  are  normally  corrected  in  real  time  since
    1996-nov-29.  Between 1996-may-29 and 1996-nov-29, the focus corrections
    were logged in the data files. Before 1996-may-29 they are only  in  the
    log-obs  files.  Between 1996-nov-29 and 1998-apr-02, the correction had
    wrong sign for the few projects using HIGH LOCK.

    So use MODIFY  FOCUS  with  NO  arguments  for  data  more  recent  that
    1996-nov-29:  this  should  correct  the  HIGH  LOCK  problem.   Between
    1996-may-29 and 1996-nov-29, MODIFY FOCUS with no arguments will use the
    focus offsets in the header and apply the corresponding phase offsets.

    For older data you may now search for the focus changes in the log files
    to apply the phase corrections before calibration; or use jumps  in  the
    phase calibration (SOLVE PHASE /BREAK) just as you had done before.

2 FREQUENCIES
        CLIC\MODIFY FREQUENCIES

    The  frequencies  and line names introduced by SET FREQUENCY are used to
    re-define the  velocity scales  for each subband/sideband.  By  default,
    the  frequency  and  line name entered in OBS for  at data aquisition on
    the Plateau de Bure is used for all sidebands and subbands.

2 PHASE_SIGN
        CLIC\MODIFY PHASE_SIGN

    Change the sign of all phases of the data in the  current  index.   This
    command is intended for recovering data taken in a preliminary status of
    the new correlator software.

2 POSITION
        CLIC\MODIFY POSITION EQ Epoch R.A. Dec.

    Modify the source (phase center) position. This precesses the phases ac-
    cordingly.  Note  that  this  cannot change the antenna pointing center.
    Typical use of this command is to correct positions of inaccurate  phase
    calibrators.

2 REFERENCE
        CLIC\MODIFY REFERENCE UPPER|LOWER r1 r2 ...

    The  reference  channels in the available line subbands  are  changed to
    the new values.  Use with caution:  this command  is  actually  changing
    the frequency and velocity scale of your data.

2 SCALE
        CLIC\MODIFY SCALE amplitude phase

    Multiply  all  data in the current index by this (complex) scale factor.
    To be used in case of emergency only!.

2 TELESCOPE
        CLIC\MODIFY TELESCOPE

    Compute the telescope name (i.e. the configuration  name)  according  to
    the new rules.

2 TIME
        CLIC\MODIFY TIME dut1

    Modify  the time constant DUT1 (in seconds) and recompute the phases ac-
    cordingly. For very high accuracy astrometry, DUT1 may need  to  be  ad-
    justed  afterwards to correct for irregularities for the earth rotation.
    The "a priori" estimates may be wrong.  Another case is  the  leap  sec-
    onds, if they are introduced asynchronously with the DUT1 constant...

2 VELOCITY
        CLIC\MODIFY VELOCITY New_vel

    The  source  velocity is changed to New_vel. Use with caution: this com-
    mand is actually changing the frequency and velocity scale of your data.

2 HEADER
        CLIC\MODIFY HEADER procedure

    This is a general command to edit the header of the scans in the current
    index..  CLIC enters a loop in which all the headers  are  read  succes-
    sively.   For  each  header the procedure 'procedure' (default extension
    ".clic") is executed.  This procedure may  only  contain  the  following
    commands  : DUMP, HEADER, GO, or any SIC command that acts on variables.
    Especially, variables defined by the VARIABLE command can be modified...

    The  command GO [WRITE] must end the procedure.  With GO WRITE, the scan
    header will be updated; with only GO, the scan header is not updated and
    CLIC  loads the next scan header in the current index.  If no GO command
    in encountered in the procedure, the loop is aborted.  If a  PAUSE  com-
    mand  is  found  in the procedure, the PAUSE is executed, but the prompt
    changes to "MODIFY>".  The same commands as above may then  be  executed
    from the keyboard; "QUIT ALL" may be used to abort the loop.

2 DATA
        CLIC\MODIFY DATA procedure [/BEFORE date] [/AFTER date] [/ATM]

    This  is  a general command to edit the data headers of the scans in the
    current index. CLIC enters a loop in which for all scans in the  current
    index,  the data header of the average record is read. For each scan the
    procedure 'procedure' (default extension ".clic") is executed. This pro-
    cedure  may  only  contain  the following commands : DUMP, HEADER, FLAG,
    MINMAX, GO, or any SIC command that acts on variables. Especially, vari-
    ables defined by the VARIABLE command can be modified...

    The  command GO [WRITE] must end the procedure.  With GO WRITE, the data
    record will be updated; with only GO, the data record is not updated and
    CLIC  loads the next record from the current index.  If no GO command in
    excountered in the procedure, the loop is aborted.  If a  PAUSE  command
    is found in the procedure, the PAUSE is executed, but the prompt changes
    to "MODIFY>".  The same commands as above may then be executed from  the
    keyboard; "QUIT ALL" may be used to abort the loop.

    The  options /BEFORE and /AFTER allows to select data depending on their
    observing dates.

    If present, the /ATM option allows to modify  the  data  header  of  the
    phase corrected average record (will work only if such record is present
    in the data, so only on cross-correlations:  CROSS,  FLUX,  POINT,  GAIN
    ...)

2 RECORD
        CLIC\MODIFY  RECORD procedure [/RECORD idump] [/BEFORE date] [/AFTER
    date]

    This is a general command to edit the data headers of the scans  in  the
    current  index.   CLIC enters a loop in which all the data header of all
    records of all scans in the current index are read successively.  In the
    case the option "/RECORD idump" is used, only the record number idump is
    read.  For each record  the  procedure  'procedure'  (default  extension
    ".clic")  is  executed.   This  procedure may only contain the following
    commands : DUMP, HEADER, FLAG, MINMAX, GO, or any SIC command that  acts
    on  variables. Especially, variables defined by the VARIABLE command can
    be modified...

    The command GO [WRITE] must end the procedure.  With GO WRITE, the  data
    record will be updated; with only GO, the data record is not updated and
    CLIC loads the next record from the current index.  If no GO command  in
    excountered  in  the procedure, the loop is aborted.  If a PAUSE command
    is found in the procedure, the PAUSE is executed, but the prompt changes
    to  "MODIFY>".  The same commands as above may then be executed from the
    keyboard; "QUIT ALL" may be used to abort the loop.

    The options /BEFORE and /AFTER allows to select data depending on  their
    observing dates.

1 NEW_DATA
        CLIC\NEW_DATA [time] [tries]

    Waits  until  new  data has been written to the input file, then makes a
    new index from all new data. The type of observation can be  changed  by
    this  command, but the index will contain only observations of one type.
    Selection criteria defined by command SET are ignored.

    This command can be used to make a quick look or analysis of  data  pro-
    duced by a real time acquisition system (Plateau de Bure).  Caution: on-
    ly two programs should access the input  file  simultaneously,  one  for
    writing the other for reading.

    The  first argument is the time interval between two consecutive inspec-
    tions of the file index; the second is the allowed number of  unsuccess-
    ful  attempts  to find new data in the file. The defaults are 10 seconds
    and 12 tries (two-minute timeout).

1 PLOT
        CLIC\PLOT keyword [/IDENTIFY [COLOUR]] [/NOFRAME [pen]] [/NODRAW]
        [/RECORD list_of_records] [/RESET] [/APPEND] [/PHYSICAL]

    Plot data from the current index according to options  selected  by  the
    CLIC\SET command.

    PLOT [ALL]

        Erases the screen and plots all data in the current index (default).

    PLOT FIRST

        Erases the screen and plots data from the first observation  in  the
        current index.

    PLOT NEXT

        Plots  data from the next observation in the current index. Does not
        clear the screen before plotting.

    PLOT number

        Plots data from the observation of the given number (must be in  the
        current index). Does not clear the screen before plotting.

    PLOT SAME

        Plots  again  the  last  plotted buffers (with possibly new options,
        such as line type, limits, ...).

    PLOT /NOFRAME [Pen]

        Does not erase the screen, and plots data in the present boxes,  op-
        tionally  with a new pen. This is very useful for comparing data. It
        can also be used in conjunction with PLOT /APPEND.

    PLOT /NODRAW

        Does not produce the plot but read all data and update the X  and  Y
        buffers. This is very useful to e.g. modify these buffers in SIC be-
        fore actual plotting (with PLOT SAME).

    PLOT /RECORD list_of_records

        Plots only some records for the observation(s). "list_of_records" is
        of the format n1 to n2 n3 n4 to n5, as with the SIC\FOR command.

    PLOT /IDENTIFY [COLOR]

        Plots  a different GREG symbol for each source (if SET PLOT POINT is
        currently active). Using optional argument COLOR will produce points
        also differing by color.

    PLOT /PHYSICAL

        Plot labels use physical antenna number rather than logical numbers.

    PLOT /RESET

        Reset the time origin (and, by consequence, the  time-dependent  am-
        plitude and phase calibration curves) before plotting.

    PLOT /APPEND

        Does  not  reset  the previous buffers before reading data and plot-
        ting.  This may be used at the Plateau  de  Bure  for  incrementally
        plotting new data just after it is written on disk.

    After the plot, the arrays X_VALUE and Y_VALUE contain the values of the
    points that have been displayed. N_BOXES is the  number  of  boxes  that
    have been plotted.

1 PRINT
        CLIC\PRINT Item

    Prepares a procedure for further use.

    PRINT BASELINE

        Prepares  a  procedure  to be used in OBS to enter the most recently
        fitted baseline parameters (SOLVE BASELINE command). This  procedure
        also  contains  (but  commented out) the CLIC\MODIFY command to edit
        previous data to the same fitted baseline parameters.

    PRINT DELAY

        Prepares a procedure to be used in OBS to enter  the  most  recently
        fitted delay parameters (SOLVE DELAY command).

    PRINT FLUXES

        Prepares  a procedure to be  used in CLIC to re-enter  the  most re-
        cently determined source fluxes (SOLVE FLUX command).

1 RESIDUALS
        CLIC\RESIDUALS item

    Clear the graphic screen and plot the  residuals  from  last  SOLVE com-
    mand. "item" can only be "BASELINE" up to now.

1 SAVE
        CLIC\SAVE name

    [STILL UNIMPLEMENTED]

    SAVE  creates  a  procedure file of name "name.clic", containing all the
    current parameters of the program.  This file may  be  executed  at  any
    time using the @ command : just type "@ name" after the CLIC> prompt, or
    pass "@ name" as a parameter when  invoking  CLIC  (by  typing  "CLIC  @
    name").   This  file  is  composed of standard CLIC commands, and may be
    edited with any text editor.

1 SET
        CLIC\SET Keyword [Value1 [Value2 [...]]] [/DEFAULT]

    This command is used to specify a value for a parameter  used  by  CLIC.
    These  values  may be temporarily overridden by the options of some com-
    mands (e.g. FIND).

    Each "SET Keyword" command has an equivalent "SHOW Keyword" command that
    display the current status. SET /DEFAULT restores all default values.

2 AMPLITUDE
        CLIC\SET AMPLITUDE [ABSOLUTE|RELATIVE] [SCALED|UNSCALED]
        [KELVIN|JANSKY] [ANTENNA|BASELINE]

    This  command  controls  which scaling factor is applied to the data for
    plotting and writing in the output table, in subsequent PLOT  and  TABLE
    commands:

      -  ABSOLUTE  means  that the relative amplitude calibration is not ap-
        plied.

      - RELATIVE means that the relative amplitude  calibration,  as  deter-
        mined  with SOLVE AMPLITUDE, and stored with STORE AMPLITUDE, is ap-
        plied.

      - SCALED means that the absolute amplitude is divided  by  the  source
        flux; SCALED is only used for the command SOLVE AMPLITUDE.

      -  KELVIN|JANSKY  indicates  the  unit in which the amplitude are dis-
        played: either Kelvins (in main-beam brightness temperature) or Jan-
        skys.

    SET AMPLITUDE ABSOLUTE forces SET AMPLITUDE KELVIN since the uncalibrat-
    ed data are measured in Kelvins. With SET AMPLITUDE RELATIVE, the ampli-
    tudes are in Janskys, since a calibrator of known flux has been used for
    reference. If the default is overridden (SET AMPLITUDE  ABSOLUTE  JANSKY
    or  SET  AMPLITUDE  RELATIVE KELVIN), conversion factors (=antenna effi-
    ciencies) are taken from the scan headers; these factors may  be  deter-
    mined by SOLVE FLUX and stored by STORE FLUX.

    SET  AMPLITUDE ANTENNA|BASELINE switches between Antenna-based and Base-
    line-based amplitude calibrations.  This switch will be active for SOLVE
    AMPLITUDE  (calibration  curve determination), STORE AMPLITUDE (calibra-
    tion curve storing operation), and SET AMPLITUDE RELATIVE (application).
    Both  baseline-based  and antenna-based calibration curves may be stored
    alongside in the data header, independently of each other. Using SET AM-
    PLITUDE ANTENNA is recommended.

2 ANGLE
        CLIC\SET ANGLE unit

    Specify  the angle unit for offsets.  May be R[adian], D[egree], M[inute
    of arc], S[econd of arc].  Default is SECOND.  The ANGLE  unit  is  also
    used to display Continuum drifts.

2 ANTENNAS
        CLIC\SET ANTENNAS [a1 a2 ...]
        CLIC\SET ANTENNAS ALL

    Selects  the  antennas for which data will be displayed by command PLOT.
    This command is exclusive with commands SET BASELINES and SET TRIANGLES.

    Parameters  which  may be displayed in this antenna-mode are obvious an-
    tenna-based parameters such as cable phase, LO-phase and rate, ...  With
    SET Y AMPLITUDE and when more than 3 antennas are available in the data,
    antenna amplitude is computed by averaging all possible "triangular  ra-
    tios"  of baseline amplitudes. With SET Y PHASE a phase is attributed to
    each antenna by setting the phase of antenna 1 to zero, and  making  use
    of closure relations for other antennas (least square fit). This is use-
    ful for fitting baselines for instance (it enables one to determine  di-
    rectly antenna position offsets).

    SET  ANTENNA with no arguments selects all antennas present in the base-
    lines previously in use. SET ANTENNA ALL will select  all  the  antennas
    available  in  the first scan of the current index, for each command ac-
    cessing the data (e.g. PLOT).  This is the default.

    Note that SET ANTENNA also allows to select the antenna to be  processed
    by  the  SOLVE HOLOGRAPHY command (if several antennas are selected, the
    first one in the list is processed).

2 APC
        CLIC\SET APC status

    *** THIS COMMAND IS OBSOLETE ***

2 AVERAGING
        CLIC\SET AVERAGING mode

    Selects time averaging of data plotted (the data in the  file  is  unaf-
    fected). 'mode' may be :

      - NONE :  all data points are plotted.

      -  SCAN  :   the scan-averaged data is used and only one point is thus
        plotted per scan.

      - TIME dt :  data is averaged in   time   intervals   of   length   dt
        (seconds).  Data of consecutive scans is NOT averaged together.

      -  METHOD  VECTOR  : complex visibilities are averaged as complex num-
        bers.

      - METHOD SCALAR : amplitude and phases of  visibilities  are  averaged
        separately.

    This  command  obviously does not affect the spectral data. See also SET
    BINNING for another way of averaging data.

2 ASPECT_RATIO
        CLIC\SET ASPECT_RATIO value [AUTO|EXACT]

    Choose a default aspect ratio (x_size/y_size) for boxes plotted  by com-
    mand   PLOT.   If  several boxes must be plotted (depending on subbands,
    baselines, or sidebands selected), the plot page will be partitioned  in
    order to:

      -  AUTO  mode:   approach this aspect ratio for each box while filling
        the whole page.

      - EXACT mode:  use this aspect ratio for each box (part  of  the  plot
        page will be left blank).

    The default is 2.0 AUTO.

2 ATMOSPHERE
        CLIC\SET ATMOSPHERE Argument Value /ANTENNA a1 [a2 ...]

    Selects  the  way atmospheric calibration is done by command ATMOSPHERE,
    Argument may be FILE, AUTO, TREC, or MANUAL. This will affect the anten-
    nas  given  in argument to the option /ANTENNA (/ANTENNA ALL selects all
    antennas). Argument may also be NEW, 2009, 2003, OLD,  1985,  to  switch
    between atmospheric model versions or INTERPOLATE to use tabulated atmo-
    spheric model (defined to be GAG_ATMOSPHERE) ; option  /ANTENNA  is  not
    required in that case.

      - In FILE mode the actual mode is taken from the data header,  as giv-
        en in the OBS program.

      - In TREC mode the receiver temperature is assumed known, to  set  the
        scale  of  measured sky temperature and optical depth, and determine
        the system noise temperature.  The  receiver  temperature  is  taken
        from  the  data header, as given in OBS.  It may be forced to a dif-
        ferent value by giving it as second argument 'value', or by the  SET
        TREC command.

      -  In AUTO mode the water wapor content is assumed  known;  it  is de-
        termined  from  the  antennas  in TREC mode, if any, or  taken  from
        the  data  header,  or forced  to  the  value  given  in  the second
        argument 'value', or by the SET WATER command.

    These parameters, together with the wheather station data, are  used  to
    compute  the system noise temperature for each antenna.  In MANUAL mode,
    no model atmosphere is used,  but  the  values  of  optical  depths  and
    atmospheric temperatures stored in the data.

      -  OLD  or 1985 (the default) select the old ATM model, in use at IRAM
        since circa 1985.

      - 2003 select the 2003 version of the ATM model,developed by Juan Par-
        do  in  ISM  in Madrid. For this, the new ATM library must be avail-
        able. If not the old ATM  will be used.

      - NEW or 2009 select the 2009 ATM model,developed by Juan Pardo in ISM
        in  Madrid.  For this, the ATM library must be available. If not the
        old ATM  will be used.

      - INTERPOLATE will use a tabulated file produced  by  ASTRO\ATMOSPHERE
        MAKE.  This  option should not be used, as the use of tabulated file
        is only used to speed up calculations at Bure.



2 BANDS
        CLIC\SET BANDS b1 b2 ...

    Selects the sidebands for which data will be displayed by command  PLOT.
    Valid  codes are "UPPER" or "USB", "LOWER" or "LSB", "AVERAGE" or "DSB",
    "DIFFERENCE", and "RATIO".

    In "AVERAGE", "DIFFERENCE" or "RATIO" modes, the sidebands  visibilities
    are  corrected  before  combination for their relative phases, as deter-
    mined by the RF bandpass calibration.  If no RF bandpass calibration  is
    available  (i.e. stored with the data), the relative phases are obtained
    by averaging the continuum subbands (which is useless  if  no  continuum
    emission is detected).

2 BASELINES
        CLIC\SET BASELINES [b1 b2 ...]
        CLIC\SET BASELINES ALL

    Selects  the baselines for which data will be displayed by command PLOT.
    Valid codes are pairs of antennas, e.g. "12", "13", "23",  etc...   This
    command is exclusive with commands SET ANTENNAS and SET TRIANGLES.

    SET  BASELINE  with no argument selects all baselines connecting the an-
    tennas previously in use. SET BASELINE ALL will select all the baselines
    available  in  the first scan of the current index, for each command ac-
    cessing the data (e.g. PLOT).  This is the default.

2 BINNING
        CLIC\SET BINNING size [position]
        CLIC\SET BINNING OFF

    Selects data averaging in bins of the parameter in the X coordinate  ar-
    ray.  Bins are defined by the size of intervals, and the position of one
    of the intervals (in units of the X coordinate; default is 0).  SET BIN-
    NING  OFF  will turn this mode off. Note that this averaging in bins oc-
    curs AFTER the averaging selected by SET AVERAGING.

    SET BINNING is particularly useful for averaging spectra along the  fre-
    quency axis and for plotting data as a function of UV coordinates.

    A  command SET X used to change the X units will automatically reset the
    binning OFF.

2 BPC
        CLIC\SET BPC status

    FIND will select observations according to the  status  of  RF  Bandpass
    Calibration  (BPC).  'status'  may be YES to select observations already
    calibrated, NO to select still uncalibrated observations, * to disregard
    this selection criterion. This command is very seldom used.

2 CLOSURE
        CLIC\SET CLOSURE b1 w1 b2 w2 ...

    *** THIS COMMAND IS OBSOLETE ***

    Select  weights  to be used for each baseline when computing the closure
    relations (this  is  done  by  a  least   squares   resolution   of   an
    overdetermined system, in antenna mode).  You  may  wish  to  give  more
    weight to the shorter baselines.  Default weights are equal.

2 CRITERIA
        CLIC\SET CRITERIA /DEFAULT

    Reset all the search criteria for command FIND to their  default  values
    (all  the  observations in the file will be found). Use SHOW CRITERIA to
    list the current criteria.

    SET /DEFAULT will set default values for all parameters (not only selec-
    tion criteria).

2 DATA
        CLIC\SET DATA np nb

    Extend  the  size  of  the plot buffers to contain nb boxes of np points
    each.

2 DEFAULT
        CLIC\SET DEFAULT (or SET /DEFAULT)

    Reset all the SET parameters to their default values.

2 DROP
        CLIC\SET DROP low high

    Give the fraction of the passband to be left out  at  the  low-frequency
    and at the high frequency ends of each spectral correlator subband. This
    is used by further PLOT and TABLE commands.  The default is  5%  of  the
    bandwidth at both ends.

2 ERRORS
        CLIC\SET ERROR NOISE|ATMOSPHERE

    *** THIS HELP IS NOT UPTODATE ***

    Controls the way the error bars for phase plots in time mode are comput-
    ed.
      - with NOISE the errors are computed according to the system noise on-
        ly; this is the default.
      -  with  ATMOSPHERE  the  rms phase fluctuations as measured when com-
        pressing the data, are included in the error bars.

2 EXTENSION
        CLIC\SET EXTENSION string

    Use 'string' as the list of the default extensions for the FILE IN  com-
    mand. The default is ".hpb .ipb" (in this order).

    Not  all  extensions  are  accepted  by  CLIC: other possible values are
    ".ipb-raw", ".ipb-comp", ".ipb-cal", ".ipb-data".

2 FLUX
        CLIC\SET FLUX name value [frequency] [date] [/RESET]

    Enters `value' as the flux (in Janskys) of source `name'.

    The flux of one or several reference sources must be given to CLIC as an
    input  to command SOLVE FLUX (which derives the antenna efficiencies and
    the fluxes of the other objects).  If the flux of a source is entered by
    SET  FLUX,  this source will be a reference source. After "SET FLUX name
    *", source `name' will not be a reference source any more. Its flux  may
    then be re-determined by a subsequent SOLVE FLUX command.

    Use  command SHOW FLUX to list the fluxes known to the current CLIC ses-
    sion. The reference sources are listed with  a  "FIXED"  keyword  (their
    flux  is  fixed),  while the flux determined by SOLVE FLUX are listed as
    "FREE".

    One may optionally enter a frequency (in GHz) and a date  (jj-mmm-yyyy).
    The  frequencies  and  dates  are checked in that case by SOLVE FLUX and
    STORE FLUX. Matching is within 1 GHz for  frequencies  and  1  week  for
    dates.

    If  /RESET  is given, all entries with the given source name are deleted
    from the flux list. SET FLUX ALL /RESET will empty the flux list.

2 FORMAT
        CLIC\SET FORMAT Keyword [ON] [OFF]

    Set the format of the header information listed with the LIST /LONG com-
    mand. Each keyword indicate whether certain informations are to be writ-
    ten (ON) or not (OFF). If all Keyword are ON, then the same list of  in-
    formation as with the command HEADER is obtained.

        General information line  (always written)
             Observation number
             Scan number
             Project Id
             Source name
             Source type
             Procedure name
             Interferometer configuration
             Date of observation
             UT of observation
             Hour angle

         Position information line  (keyword POSITION)
             RA or L : right ascension or longitude (or azimuth)
             DEC or B : declination or latitude (or elevation)
             Epoch if equatorial coordinates are used
             Offsets in current units
             Type of coordinate (Eq, Ga, Ho)
             Flux of the source

         Quality information line (keyword QUALITY)
             Quality code
             Flag
             Receiver number
             Number of dump
             Azimuth
             Elevation

         Spectral line information line (keyword STATUS)
             Line name
             Rest frequency
             Sideband
             Doppler correction
             Source velocity
             Quarter [for new receivers only]
             Polarization [for new receivers only]
             Narrow-band correlator input [for new receivers only]

         Correlator information, for each subband (keyword SPECTRAL)
             Logical name
             Width (MHz)
             Central IF (MHz)
             Physical unit

         Interferometer status, for each antenna (keyword INTERFERO)
             Antenna number
             Station

         Pointing & Focus correction, for each antenna (keywrod POINTING)
             Azimuth correction
             Elevation correction
             Focus correction

         Calibration information, for each antenna (keyword CALIBRATION)
             Receiver temperature (K)
             Image rejection (dB)
             Water (mm)
             System temperature (Tsys)

2 FREQUENCY
        CLIC\SET FREQUENCY subband sideband name freq
        CLIC\SET FREQUENCY ALL name freq

    Select  the  line  name  and frequency to be used to define the velocity
    scale, for the given sub-band and sideband, by the commands MODIFY  FRE-
    QUENCY and MODIFY DOPPLER.

    subbands;  'sideband'  must  be either USB or LSB; 'name' is a (max.  12
    character) mnemonic for the line name; 'freq' is the rest  frequency  in
    MHz.   If the line name is '*', then the default frequency entered prior
    to the observation will be used to compute the velocity  scale  for  the
    corresponding subband.

    "SET  FREQUENCY   ALL"   will  fill  in  the  given  frequency  for  all
    subbands.

2 GAIN_IMAGE
        CLIC\SET GAIN_IMAGE value /ANTENNA i|ALL

    Give the value of the relative gain for the receiver image side band, to
    be  used  by the command ATMOSPHERE. Use * instead of the value to force
    the use of the numbers stored in the file.

2 GAIN_METHOD
        CLIC\SET GAIN_METHOD OLD|NEW

    Selects the method used to compute antenna-based gains  from  baselines-
    based  measured  quantities.  Default  is  OLD  (older  but  more robust
    method).

    OLD method: 'gain' for a antenna i is computed from three baselines  (Gi
    = Gij.Gik/Gjk). All possible "triangular ratios" including the antenna i
    are computed and averaged (for the phase, only triangles  including  the
    reference antenna are considered).

    NEW  method:  'ALMA'  like method. Solves the linear system of equations
    (for the amplitudes, solves the logarithms).

2 GIBBS
        CLIC\SET GIBBS number

    Give the number of channels to be masked on each  side  of  the  central
    frequency,  for the correlator subbands which are obtained by juxtaposi-
    tion of both sidebands of a common local oscillator.  Due to  the  Gibbs
    effect,  a  few  channels  are  corrupted by a contribution of the image
    sideband of the first local oscillator, which may contain signal if  the
    source  has  continuum emission.  This is the case for the 320 MHz bands
    at the Plateau de Bure correlator, as well as the 160 and 80  MHz  bands
    in some modes.

    The GIBBS number is used by further PLOT and TABLE commands. The default
    is 0, which is relevant for line sources with no continuum emission.

2 HOUR_ANGLE
        CLIC\SET HOUR_ANGLE begin end

    FIND will select all observations with  hour  angles  in  the  specified
    range (in hours).  Default is * * (no selection by Hour Angle).

2 IC
        CLIC\SET IC status

    FIND  will  select  observations according to the status of Instrumental
    (Phase+Amplitude) Calibration (IC).  'status' may be YES to  select  ob-
    servations  already calibrated, NO to select still uncalibrated observa-
    tions, * to disregard this selection criterion.  This  command  is  very
    seldom used.

2 LEVEL
        CLIC\SET LEVEL number

    Set  the threshold severity level (0-8) for messages to be output on the
    terminal. The default value is 4.

    With SET LEVEL 1, all messages will be displayed. With SET LEVEL 8, only
    key  messages will be displayed (this is useful during pipeline process-
    ing).

2 LINE
        CLIC\SET LINE name

    FIND will select all observations according to the specified  line  name
    (not  case  sensitive). Default is *.  A syntax like NAM* can be used to
    find observations with line names beginning by NAM.

2 MODE
        CLIC\SET MODE type

    *** THIS COMMAND IS OBSOLETE ***

    Selects which kind of data are displayed.  "type" stands  for   TIME  or
    SPECTRAL.   In  TIME  mode,  the underlying parameter is time, i.e.  two
    time-dependent parameters  are  plotted  one  against  each  other,  for
    instance phase versus time, or amplitude versus hour-angle.  In SPECTRAL
    mode, the underlying parameter  is  frequency,  for  instance  amplitude
    versus velocity.

    This  command  is  now obsolete. Please just select the parameters to be
    plotted using the SET X and SET Y commands.

2 NARROWINPUT
        CLIC\SET NARROWINPUT 0|1|2

    Selects the narrow-band correlator input.

2 NUMBER
        CLIC\SET NUMBER n1 n2

    FIND will select all Observations with numbers between n1 and  n2.   De-
    fault is * *.

2 OBSERVED
        CLIC\SET OBSERVED d1 d2

    FIND  will  select  all observations with observing dates between d1 and
    d2.  Default is * *.

    d1 and d2 are normally in explicit form (jj-mmm-yyyy) but  internal  day
    numbers are also accepted, i.e. something like SET OBSERVED 'DOBS-1' in-
    ternal format and is available after the command VARIABLE GENERAL ON has
    been issued).

2 OFFSETS
        CLIC\SET OFFSETS o1 o2

    FIND  will select all observations with offsets o1 and o2.  Default is *
    *. This is very useful in case of mosaic osbervations, in order  to  se-
    lect  a specific field (and e.g. create a UV table). See also SET RANGE.

2 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 atmo-
        sphere 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).


2 PLANET
        CLIC\SET PLANET *|PRIMARY|FILE [filename]

    Planet model to be used by the SOLVE FLUX command.

        * = default (elliptical disc)

        PRIMARY = same with primary beam attenuation

        FILE filename : use data in file filename

2 PLOT
        CLIC\SET PLOT type

    Selects the way the data are displayed.  "type" stands for LINE, POINTS,
    HISTOGRAM, or BARS. With POINTS, the current GreG marker, as defined  by
    the  GREG\SET  MARKER  command,  is used.  With BARS (valid only for the
    visibility data, i.e. amplitude, phase, real, or imaginary), 1-sigma er-
    ror bars are drawn.

2 POLARIZATION
        CLIC\SET POLARIZATION NO|HOR|VER|BOTH|EACH

    Selects the polarization of the new receivers. HOR and VER refers to the
    two polarization channels (but the 'horizontal' or 'vertical' definition
    is  arbitrary). BOTH means that both polarization must be used and aver-
    aged when applicable (eg time variation of the phase or amplitude). EACH
    will  plot  H  and  V polarization separately but at the same time (e.g.
    useful to SOLVE DELAY).

    SET POLARIZATION NO makes CLIC forget anything about polarization.  This
    is the mode to use to reduce data from the old receivers (<2007).

2 PROCEDURE
        CLIC\SET PROCEDURE proc

    FIND  will select observations done under procedure 'proc'. Known proce-
    dures are: CORRELATION, AUTOCORR, GAIN, DELAY,  FOCUS,  POINTING,  CALI-
    BRATE,  IFPB, ONOFF, HOLOGRAPHY, FIVE_POINT, PSEUDO_CONT, FLUX, STABILI-
    TY, CWVR, VLBI, VLBG.

    SET PROCEDURE * will disable procedure as a selection criterion.

2 PROJECT
        CLIC\SET PROJECT projId

    FIND will select observations done for  the  observing  project  projId.
    SET PROJECT * will disable project number as a selection criterion.

2 QUALITY
        CLIC\SET QUALITY Q

    FIND  will select only observations of quality better than Q (i.e.  less
    than Q).  When originally written, unless the real time acquisition sys-
    tem detected a severe problem, all observations have quality 0, a priori
    the best. The quality flag of an observation can be  changed  using  the
    TAG command. See HELP TAG for the recommended quality scale.

2 RANGE
        CLIC\SET RANGE West East South North

    FIND  will  select  all  observations  with  offsets  in  the  specified
    range. Default is * * * *. See also SET OFFSET command.

2 RECEIVER
        CLIC\SET RECEIVER number

    Use the receiver number as a selection criterion. With the OLD  receiver
    system  at  Plateau  de  Bure  (<2007), Receiver 1 is the 3 mm receiver,
    while Receiver 2 is the 1.3 mm receiver. With the  NEW  receiver  system
    (>2007), 4 receiver bands are available:

      - receiver band 1: 80-117 GHz (3mm band) -- AVAILABLE

      - receiver band 2: 129-174 GHz (2mm band)

      - receiver band 3: 200-257 GHz (1.3mm band) -- AVAILABLE

      - receiver band 4: 277-371 GHz (1mm band)

    The  default is SET RECEIVER * : observations with all receivers will be
    selected.

    For OLD receiver data, SET RECEIVER 1 does automatically a SET PHASE IN-
    TERNAL,  while SET RECEIVER 2 does SET PHASE EXTERNAL. See the SET PHASE
    command help. For NEW receiver data, SET PHASE INTERNAL is  the  default
    for all bands.

2 RECORD
        CLIC\SET RECORD list

    Will force all further PLOT commands to use only the records as given in
    the list (e.g. r1 r2 r3 to r4 by r5 ...). Very seldom needed.   Use  SET
    RECORD 1 to 1000000 to reset it.

2 REDUCED
        CLIC\SET REDUCED d1 d2

    FIND  will select all observations with reduction dates  between  d1 and
    d2 (format jj-mmm-yyyy). Default is * *.

2 REFERENCE
        CLIC\SET REFERENCE antenna_number

    Enter the logical number of the antenna used as reference  for  antenna-
    based calibrations (both RF passband and phase calibrations).  The phase
    for this antenna is set to zero. Default is Antenna 1.

2 RF_PASSBAND
        CLIC\SET RF_PASSBAND [ON|OFF] [CHANNEL|FREQUENCY]
        [FILE|MEMORY] [ANTENNA|BASELINE]

    This command controls the behaviour of CLIC regarding  the  RF  passband
    calibration.

    SET RF_PASSBAND ON|OFF

        Switch ON or OFF the application of RF passband calibration curve in
        plotting the data.  The RF passband calibration curve is computed by
        SOLVE  RF_PASSBAND  and  stored  with the data by STORE RF_PASSBAND.
        Subsequent PLOT commands will use or not this curve according to the
        status of SET RF_PASSBAND ON|OFF.

    SET RF_PASSBAND CHANNEL|FREQUENCY

        Use  either  the  channel dependent passband curves or the frequency
        dependent passband curve.   The  channel-dependent  passband  curves
        must be determined separately for each subband, while the frequency-
        dependent passband curve is determined by using SOLVE RF_PASSBAND on
        all  subbands  together (Note: this will not work for data taken be-
        fore July 14th 1990). SET RF_PASSBAND FREQUENCY is recommended.

    SET RF_PASSBAND MEMORY|FILE

        Use either the passband curves just determined by SOLVE RF_PASSBAND,
        and still present in the program memory, or the passband curves pre-
        viously stored in the data headers of the input file  by  a  command
        STORE RF_PASSBAND.

    SET RF_PASSBAND ANTENNA|BASELINE

        Switch between Antenna-based and Baseline-based RF passband calibra-
        tions. This switch will be active for  SOLVE  RF_PASSBAND  (passband
        determination),  STORE RF_PASSBAND (passband storing operation), and
        SET RF_PASSBAND ON (fpassband application).  Both baseline-based and
        antenna-based calibration curves may be stored alongside in the data
        header, independently of each other. SET RF_PASSBAND ANTENNA is rec-
        ommended.

2 SCAN
        CLIC\SET SCAN s1 s2 [s3 s4 ...]

    FIND  will  select all observations with Scan numbers between s1 and s2,
    or s3 and s4...  The Scan number, attributed by the on-line  acquisition
    system  may  be  different  from the Observation number which is used by
    CLIC to refer to the Observations. Default is * *.

2 SELECTION

        CLIC\SET SELECTION mode band subband-list [FREQUENCY freqout]
        [/WINDOW fmin fmax [fmin2 fmax2 ...]]

    Choose the type of data selection to be done by command TABLE (to create
    an output UV table).

      -  The  first  argument 'mode' is CONTINUUM or LINE, to prepare single
        channel or multiple channel maps.

      - The second argument is the sideband to be used: UPPER (or USB), LOW-
        ER  (or LSB), AVERAGE (or DSB), AUTO or SSB. DSB may be used in con-
        junction with CONTINUUM:  in  this  case,  two  separate  visibility
        points  are  written, one for each sideband. DSB used in conjunction
        with LINE means that the side band will be selected to match the de-
        sired frequency range (as given in the command TABLE), thus allowing
        to mix in the same table data from USB and LSB,  if  different  fre-
        quency  setups have been used in different configurations. AUTO will
        determine for each narrow input whether the receiver tuning  is  DSB
        or SSB and accordingly select DSB (write a visibility for each side-
        band) or the signal sideband if SSB.  SSB will write one  visibility
        for  the signal side band (automatically determined).  This last two
        options are useful for continuum only. For LINE, they will just  se-
        lect the matching side band as does DSB.

      - The third argument is a subband list.In CONTINUUM mode, subbands are
        averaged, in spectral mode they are combined  to  produce  a  single
        spectrum.   The subband list is given with the same syntax as in the
        SET SUBBAND command, e.g. "n1 to n3" or "n1 to n3 and n5".

    Example: SET SELECTION CONTINUUM USB C01 AND C03 AND C05 selects contin-
    uum data, USB, and the subbands C01, C03, and C05.

    Arguments  "FREQUENCY freqout" are used only for CONTINUUM tables.  They
    define the frequency (in MHz) used for mapping purposes. U  and  V  (for
    each  side  band in DSB mode) will be scaled to this frequency.  This is
    intended to combine maps obtained in  continuum  at  slightly  different
    frequencies.   The default for freqout is the actual observing frequency
    , or the frequency used for previous data if data is appended to a  pre-
    viously existing table by the TABLE command.

    Option /WINDOW is used to avoid spectral lines when producing a continu-
    um table from spectral correlator data. The first two  rest  frequencies
    (in  MHz)  give  the first frequency window in which data is to be used,
    the next two give the second frequency window, etc....

2 SOURCE
        CLIC\SET SOURCE name1 name2 ...  namen

    FIND will select all scans  according  to  the  specified  source  names
    (matching  is  not  case-sensitive). Up to 10 source names can be given.
    Syntax like NAM* can be used to find all observations with  source  name
    beginning by NAM. Default is *.

2 SORT
        CLIC\SET SORT RECEIVER|SCAN

    The  output  of LIST and LIST /SHORT may be sorted primarily be receiver
    number or scan number. Use SET SORT to switch  between  the  two  modes.
    Default is RECEIVER mode.

2 SPECTRUM
        CLIC\SET SPECTRUM ON|OFF

    *** THIS COMMAND IS OBSOLETE ***

2 STEP
        CLIC\SET STEP t_step

    Select  the time interval parameter to be used by  the  SOLVE  PHASE and
    SOLVE  AMPLITUDE  command (time interval  between  knots  of  the  cubic
    spline functions).  Value is in hours (default 3 hours).

2 SUBBANDS
        CLIC\SET SUBBANDS n1 n2 ...  [/WINDOW f1 l1 f2 l2 ...]
        CLIC\SET SUBBANDS LINE|CONT
        CLIC\SET SUBBANDS ALL
        CLIC\SET SUBBANDS EACH
        CLIC\SET SUBBANDS HOR|VER
        CLIC\SET SUBBANDS Q1|Q2|Q3|Q4
        CLIC\SET SUBBANDS NBC1|NBC2

    Selects  the  subbands for which data will be displayed by command PLOT.
    Valid codes are continuum subbands numbers (C01, C02, ...  C08) or  line
    subbands  numbers (L01, L02, ... L08). These are logical numbers, so one
    should select e.g. L01 to L04 if four correlator units were used,  inde-
    pendentely  from  the  physical units actually used. This is a classical
    trap, especially with the old receiver system (<2007): if e.g.  units  1
    to  5 were used on Receiver 1 and units 6 to 8 on Receiver 2, the corre-
    sponding subbands will be L01 to L05 for the Receiver 1 scan, and L01 to
    L03 for the Receiver 2 scan.

    Subbands  may  be  grouped  by typing e.g. "SET SUBBANDS n1 to n2 and n3
    n4". Here, two quantities will be plotted. The first one is  either  the
    average of subbands n1 to n2 and n3 (in time mode), or the concatenation
    of spectral data from subbands n1 to n2 and n3 (in spectral  mode).  The
    second quantity plotted is subband n4.

    SET  SUBBANDS LINE|CONT will switch all subbands to their line/continuum
    counterpart, e.g. L01 to L04 will be changed to C01 to C04 by SET  SUBB-
    BANDS CONT. Done by SET X I_F

    A number of usefule shortenings are available:

      -  SET  SUBBANDS ALL will automatically select all the subbands in the
        first scan of the current index, for each command accessing the  da-
        ta.  The subbands are concatenated (equivalent to e.g.  SET SUBBANDS
        L01 to L06).

      - SET SUBBANDS EACH will automatically select all the subbands in  the
        first  scan of the current index, for each command accessing the da-
        ta. The subband are NOT concatenated (equivalent to e.g.   SET  SUB-
        BANDS L01 L02 L03 L04 L05 L06).

      - SET SUBBANDS HOR|VER will automatically select (in the first scan of
        the current index) the subbands connected to the horizontal or  ver-
        tical  polarization channel (if any). The subbands are concatenated.

      - SET SUBBANDS Q1|Q2|Q3|Q4 will automatically  select  (in  the  first
        scan  of  the  current index) the subbands connected to the selected
        quarter (if any). The subbands are concatenated.

      - SET SUBBANDS NBC1|NBC2 will automatically select (in the first  scan
        of the current index) the subbands connected to the selected narrow-
        band correlator input (if any). The subbands are concatenated.


        CLIC\SET SUBBANDS n1 n2 ...  /WINDOW first1 last1 first2 last2 ...

        The /WINDOW option select the first and last channels to be used for
        the  LINE subbands. There should be one couple of parameter for each
        group of subbands.

        In spectral mode, the window limits may be used to restrict the plot
        to a certain range, e.g.
            SET SUBBANDS L01 TO L02 /WINDOW 10 64

            will  avoid plotting channels 1 to 9 of each of the two subbands
        L01 and L02 (which are here combined to a single spectrum). This may
        be  useful  to flag meaningless channels at the low-frequency and at
        the high frequency ends of each spectral correlator. Note:  this  is
        now done automatically, see SET DROP command.

        In  time mode, the window limits select the data to be integrated to
        compute a single point.For example
            SET SUBBANDS L01 L02 /WINDOW 1 10 1 10 will plot data integrated
        from  the  first  ten channels of the first line subband, as a first
        quantity, and data integrated from the first 10 channels of the sec-
        ond line subband, as a second quantity.

        Note:   if  you want to use both continuum and line subbands, in the
        same plot  page, you should include dummy arguments in  the  /WINDOW
        option for the continuum spectra:
            SET  SUBBANDS  C01 to C10 L01 to L02 /WINDOW 0 0 2 64 (two argu-
        ments are needed for each resulting spectrum).

2 TELESCOPE
        CLIC\SET TELESCOPE name

    FIND will select all scans according to the  specified  telescope  (i.e.
    interferometer configuration) name.  Default is *.  Syntax like NAM* can
    be used to find all observations with telescope name beginning by NAM.

2 TIME_ORIGIN
        CLIC\SET TIME_ORIGIN  *|date

    *** THIS HELP IS NOT UPTODATE ***

    Specify the time origin for the abscissa in time plots. This is normally
    the  day  for  which the first data is plotted, and time is displayed in
    hours since that day. This day is reset by using PLOT /RESET.

    "SET TIME_ORIGIN date" forces the time origin to the specified day (e.g.
    01-AUG-2004).  "SET  TIME_ORIGIN  *"  resets the default (automatic) be-
    haviour.

2 TOTAL_POWER
        CLIC\SET TOTAL_POWER raw|physical

    For new receivers, switch between total power as measured by the  corre-
    lator (raw) in units of (sigma/v)^2 and "physical" temperature scale (in
    K).

2 TREC
        CLIC\SET TREC value /ANTENNA i|ALL

    Give the value of the receiver temperature, to be used  by  the  command
    ATMOSPHERE.  Use  * instead of the value to force the use of the numbers
    stored in the file.

2 TRIANGLE
        CLIC\SET TRIANGLE t1 t2 ...

    *** THIS HELP IS NOT UPTODATE ***

    Selects the triangle products for which data will be  displayed  by com-
    mand   PLOT.   Valid   triangles are codes as e.g. "123" or "345".  This
    command is exclusive with commands  SET  BASELINES  and SET  ANTENNAS.

    This command will be effective only if the triangle products  have  been
    computed  and  stored  in the data by commands SPECTRUM/TRIANGLE or COM-
    PRESS/TRIANGLE.  In that case the triangle products will have been aver-
    aged  by  these  commands;  since the phase of the triangle products are
    closure quantities, the amplitude of the average should not be  affected
    by atmospheric decorrelation.

2 TYPE
        CLIC\SET TYPE par

    FIND  will select observations of specified type 'par'.  This may be OB-
    JECT, PHASE (i.e. calibrators), or RF (i.e. RF passband calibrator; this
    is obsolete). Use argument "*" to disable selection by source type.

2 UV_RANGE
        CLIC\SET UV_RANGE UVmin UVmax

    This command will force all further PLOT commands to use only the points
    that are within this range in the UV plane, i.e. those for which UVmin <
    sqrt(U**2+V**2) < UVmax.

2 VIRTUAL
        CLIC\SET VIRTUAL

    *** THIS COMMAND IS OBSOLETE ***

2 WATER
        CLIC\SET WATER value

    Give  the  value  of  the water vapor content (in mm), to be used by the
    command ATMOSPHERE. Use * instead of the value to force the use  of  the
    numbers stored in the file.

2 WEIGHTS
        CLIC\SET WEIGHTS [TSYS ON|OFF] [CALIBRATION ON|OFF]

    Selects  the  way  the weights written in the output file by the command
    TABLE are computed.

    Weights are always proportional to observing time.

    With TSYS ON, data is also weighted by  1/TSYS**2,  where  TSYS  is  the
    equivalent  system  temperature (the geometrical mean of system tempera-
    ture of both antennas, for a given baseline). With TSYS OFF, this weight
    factor is turned off.

    With CALIBRATION ON, data is also weighted by 1/CAL**2, where CAL is the
    amplitude instrumental calibration factor (if any).  If no amplitude in-
    strumental  calibration  function  is applied (absolute amplitude), this
    weighting should have no effect. With CALIBRATION OFF, weights  are  not
    affected by amplitude calibration.

    Default is TSYS ON and CALIBRATION ON, which results in weights equal to
    1/sigma^2, where sigma is the thermal noise in the data.

2 X
        CLIC\SET X param1 [param2 ...] [/LIMITS min1 max1 [min2 max2 ...]]

    Choose the parameters to be plotted along X-axes by command PLOT.

    Parameters valid in both TIME mode and SPECTRAL mode:
      AMPLITUDE,  PHASE,  REAL,  or  IMAGINARY:   referring  to   the  visi-
        bility   in   the  subband(s),  sideband(s),  baseline(s) (or anten-
        na(s)) selected by SET SUBBANDS, SET BANDS, SET  BASELINES  or   SET
        ANTENNAS   commands.   Only  correlation  scans will be plotted, not
        autocorrelations.

      AUTOCORR.   :   the  autocorrelation  power  measured  in    the  sub-
        band(s),   antenna(s)  selected  by  SET  SUBBANDS,  and  SET ANTEN-
        NAS commands.  Only autocorrelation scans will be plotted,  (includ-
        ing calibration scans), not correlations.

    Parameters valid in SPECTRAL mode only:

      CHANNEL  :   channel  number  in the correlator (use ony  this  one if
        Fourier Transform has not been made).

      VELOCITY :  normally with respect to LSR.

      I_FREQUENCY : the frequency in the second IF (around 350 MHz).

      SKY_FREQUENCY : the sky frequency.  This should be the line rest  fre-
        quency if the velocity is correct.

    Parameters valid in TIME mode only:

      U_COORD,  V_COORD, RADIUS, ANGLE: referring to cartesian, or polar co-
        ordinates, in the (U,V) plane, of the baseline(s) selected  by  com-
        mand SET BASELINES.

      TIME:  universal  time  (in hours, origin determined by the first plot
        made, may be reset by PLOT /RESET).

      SCAN:  the scan number

      NUMBER:  the observation number.

      RECORD:  the record number (1 to the number of plotted points).

      HOUR_ANGLE

      DECLINATION

      RMS_PHASE:  the r.m.s.  of the  phase  of  the  average  of  the  non-
        flagged   subbands   of   the continuum correlator, in current phase
        units  (degrees  or  radians).   This  r.m.s.   phase   is  computed
        during the data compression.

      RMS_AMPLITUDE:   the  r.m.s.  of the amplitude of the  average  of the
        non-flagged  subbands  of  the  continuum  correlator,   in  current
        amplitude units  (kelvins  or  janskys).   This  r.m.s. amplitude is
        computed during the data compression.

      DELAY:  as  specified  for  specified  baseline  (differential,  A1-A2
        for baseline 12), or for the specified antenna(s).

      LO_RATE:   as  specified  for specified baseline (differential, as DE-
        LAY), or for the specified antenna(s).

      LO_PHASE:  as used for  specified  baseline   (differential,   as  DE-
        LAY), or for the specified antenna(s).

      CABLE_PHASE:  as measured for specified baseline (differential, as DE-
        LAY), or for the specified antenna(s).

      GAMME:  the current range (1 or 2) of the cable phasemeter.

      TOTAL_POWER:   the  total  power   measured   for   the   given anten-
        na(s), as measured by the connected detectors.

      LAMBDA,  BETA,  or  FOCUS:  the scanning coordinates for  pointing and
        focussing  scans  (arc  seconds,  or millimeters), for the specified
        antenna,  or  the moving antenna if the given  baseline (if only one
        is moving).

      AZ_CORR: the azimuth collimation correction in arc seconds.

      EL_CORR: the elevation collimation correction in arc seconds.

      FOC_CORR: the Z focus correction in millimeters.

      T00 ...  T04 : general test parameters (in data headers)

      T10 ...  T14 : test parameters (antenna based) (in data headers)

      TREC:  receiver temperature for the given antenna(s).

      TSYS :  Equivalent system temperature for  the  given  baseline  (Geo-
        metrical   mean  of Tsys for both antennas), or for the given anten-
        na(s).

      PAMB, TAMB, HUMIDITY: measured atmospheric parameters.

      WIND_AVERAGE, WIND_DIR0the wind direction in degrees, for 5 min. aver-
        ages and maxima..

      QUALITY: The observation quality as set with commands TAG or CURSOR.

      AZIMUTH, ELEVATION: Start azimuth and elevation for each scan.

      AZ_ERR, EL_ERR: The tracking errors in arc seconds.

      AZ_PH,  EL_PH:  The azimuth and elevation for each record (as used for
        phase tracking).

      PARAL_ANGLE: Parallactic angle (angle between the  vertical  direction
        and the meridian plane)

      WATER:  Water content of atmosphere (as set by the programmer, or mea-
        sured with given antenna).

      ATM_EMISSION: From the output of the atmospheric monitor (normally the
        1.3mm  receiver).  This is the measured radiation temperature of the
        atmosphere, in Kelvins of Rayleigh-Jeans equivalent  radiation  tem-
        perature.

      ATM_POWER: This is the output of the atmospheric monitor (normally the
        1.3mm receiver). It is the actual counts that appear on the monitors
        during observations.


      ATM_REFERENCE:  The  atmospheric  emission used as a reference for the
        phase correction. This is computed by the command MONITOR. The phase
        correction will be proportional to the difference between the output
        of the atmospheric monitor and this reference value.

      ATM_PHASE: The computed atmospheric phase correction.

      ATM_UNCORRPH: The phase  uncorrected from atmosphere.

      ATM_CORRPH: The phase  corrected from atmosphere.

      ATM_VALIDITY: 0 or 1 whether the phase correction  has  been  declared
        valid or not.


      CAL_PHASE: The phase instrumental calibration curve.

      CAL_AMPLI: The amplitude instrumental calibration curve.

      AIR_MASS: The number of air masses (1/sin(elev))

      GROUND_EMIS:  The  ground  emission in K (calibrated total power, with
        sky emission subtracted).

      EMISSION:  The total power detected in emission in K (ground + sky)

      TDEWAR1, TDEWAR2, TDEWAR3: The temperatures in the 3-stage cryogenera-
        tors.

      TCABIN,  TCHOP,  TCOLD: The temperatures of the receiver cabin, of the
        ambient load, and the equivalent temperature of the cold load.

      WVRTAMB, WVRTPEL: The temperature of the  water vapor radiometer (WVR)
        ambient load and peltier cooler.

      WVRTCAL1,  WVRTCAL2,  WVRTCAL3 : The channel gains for the 3 frequency
        bands.

      WVRREF1, WVRREF2, WVRREF3 : The average counts on  reference  observa-
        tion

      WVRAVER1,  WVRAVER2, WVRAVER3 : The average counts on current observa-
        tion

      WVRAMB1, WVRAMB2, WVRAMB3 : The average counts on  last  ambient  mea-
        surement

      WVRTREC1, WVRTREC2, WVRTREC3 : The receiver temperatures

      WVRFEFF1, WVRFEFF2, WVRFEFF3 : The coupling factors to sky

      WVRMODE : The calibration mode

      WVRH2O, WVRPATH : The precipitable water vapor and corresponding path-
        length

      WVRTSYS1, WVRTSYS2, WVRTSYS3 : The system temperatures

      WVRDPATH1, WVRDPATH1, WVRDPATH3 : The Kelvin to water vapor pathlength
        (model)

      WVRFPATH1, WVRFPATH2, WVRFPATH3 : The Kelvin to water vapor pathlength
        (empirical)

      WVRLIQ1, WVRLIQ2, WVRLIQ3 : The Kelvin to liquid water emission

      WVRDCLOUD1, WVRDCLOUD2, WVRDCLOUD3 : The Kelvin to liquid water  path-
        length (model)

      WVRTATM : The temperature of atmosphere

      WVRQUAL : The  quality code

      DH_WVR1, DH_WVR2, DH_WVR3 : counts of each WVR channel

      DH_WVRSTAT :  status word

      WVR_PHA_M : The WVR phase value (model)

      WVR_PHA_E : The WVR phase value (empirical)

      WVR_PHA_C : The WVR phase value due to Cloud (Model)

      tatm_s,  tatm_i  : The temperature of the atmosphere in the signal and
        image band

      REFC1, REFC2, REFC2: refraction coefficients.

      REFRACTION: refraction correction.


    The available parameters are the same as with the SET  Y  command.   De-
    fault is SET X TIME.


    The  /LIMITS  option  is used to specify fixed limits, e.g.: "SET X TIME
    /LIMITS t1 t2" where t1 and t2 are the time limits to be  used  in  this
    example.   The  codes "*" and "=" may be used. "*" means that the limits
    are automatically adjusted to the data,  separately  in  each  box;  "="
    means that common limits to all boxes are computed.

    For  time-like  plots,  the defaults are "/LIMITS * * ".  For frequency-
    like plots, the defaults are "/LIMITS = =".

2 Y
        CLIC\SET Y param1 [param2 ...] [/LIMITS min1 max1 [min2 max2 ...]]

    Choose the parameter to be plotted along Y-axes by command PLOT.

    Parameters valid in both TIME mode and SPECTRAL mode:
      AMPLITUDE,  PHASE,  REAL,  or  IMAGINARY:   referring  to   the  visi-
        bility   in   the  subband(s),  sideband(s),  baseline(s) (or anten-
        na(s)) selected by SET SUBBANDS, SET BANDS, SET  BASELINES  or   SET
        ANTENNAS   commands.   Only  correlation  scans will be plotted, not
        autocorrelations.

      AUTOCORR.   :   the  autocorrelation  power  measured  in    the  sub-
        band(s),   antenna(s)  selected  by  SET  SUBBANDS,  and  SET ANTEN-
        NAS commands.  Only autocorrelation scans will be plotted,  (includ-
        ing calibration scans), not correlations.

    Parameters valid in SPECTRAL mode only:

      CHANNEL  :   channel  number  in the correlator (use ony  this  one if
        Fourier Transform has not been made).

      VELOCITY :  normally with respect to LSR.

      I_FREQUENCY : the frequency in the second IF (around 350 MHz).

      SKY_FREQUENCY : the sky frequency.  This should be the line rest  fre-
        quency if the velocity is correct.

    Parameters valid in TIME mode only:

      U_COORD,  V_COORD, RADIUS, ANGLE: referring to cartesian, or polar co-
        ordinates, in the (U,V) plane, of the baseline(s) selected  by  com-
        mand SET BASELINES.

      TIME:  universal  time  (in hours, origin determined by the first plot
        made, may be reset by PLOT /RESET).

      SCAN:  the scan number

      NUMBER:  the observation number.

      RECORD:  the record number (1 to the number of plotted points).

      HOUR_ANGLE

      DECLINATION

      RMS_PHASE:  the r.m.s.  of the  phase  of  the  average  of  the  non-
        flagged   subbands   of   the continuum correlator, in current phase
        units  (degrees  or  radians).   This  r.m.s.   phase   is  computed
        during the data compression.

      RMS_AMPLITUDE:   the  r.m.s.  of the amplitude of the  average  of the
        non-flagged  subbands  of  the  continuum  correlator,   in  current
        amplitude units  (kelvins  or  janskys).   This  r.m.s. amplitude is
        computed during the data compression.

      DELAY:  as  specified  for  specified  baseline  (differential,  A1-A2
        for baseline 12), or for the specified antenna(s).

      LO_RATE:   as  specified  for specified baseline (differential, as DE-
        LAY), or for the specified antenna(s).

      LO_PHASE:  as used for  specified  baseline   (differential,   as  DE-
        LAY), or for the specified antenna(s).

      CABLE_PHASE:  as measured for specified baseline (differential, as DE-
        LAY), or for the specified antenna(s).

      GAMME:  the current range (1 or 2) of the cable phasemeter.

      TOTAL_POWER:   the  total  power   measured   for   the   given anten-
        na(s), as measured by the connected detectors.

      LAMBDA,  BETA,  or  FOCUS:  the scanning coordinates for  pointing and
        focussing  scans  (arc  seconds,  or millimeters), for the specified
        antenna,  or  the moving antenna if the given  baseline (if only one
        is moving).

      AZ_CORR: the azimuth collimation correction in arc seconds.

      EL_CORR: the elevation collimation correction in arc seconds.

      FOC_CORR: the Z focus correction in millimeters.

      T00 ...  T04 : general test parameters (in data headers)

      T10 ...  T14 : test parameters (antenna based) (in data headers)

      TREC:  receiver temperature for the given antenna(s).

      TSYS :  Equivalent system temperature for  the  given  baseline  (Geo-
        metrical   mean  of Tsys for both antennas), or for the given anten-
        na(s).

      PAMB, TAMB, HUMIDITY: measured atmospheric parameters.

      WIND_AVERAGE, WIND_DIR0the wind direction in degrees, for 5 min. aver-
        ages and maxima..

      QUALITY: The observation quality as set with commands TAG or CURSOR.

      AZIMUTH, ELEVATION: Start azimuth and elevation for each scan.

      AZ_ERR, EL_ERR: The tracking errors in arc seconds.

      AZ_PH,  EL_PH:  The azimuth and elevation for each record (as used for
        phase tracking).

      PARAL_ANGLE: Parallactic angle (angle between the  vertical  direction
        and the meridian plane)

      WATER:  Water content of atmosphere (as set by the programmer, or mea-
        sured with given antenna).

      ATM_EMISSION: From the output of the atmospheric monitor (normally the
        1.3mm  receiver).  This is the measured radiation temperature of the
        atmosphere, in Kelvins of Rayleigh-Jeans equivalent  radiation  tem-
        perature.

      ATM_POWER: This is the output of the atmospheric monitor (normally the
        1.3mm receiver). It is the actual counts that appear on the monitors
        during observations.


      ATM_REFERENCE:  The  atmospheric  emission used as a reference for the
        phase correction. This is computed by the command MONITOR. The phase
        correction will be proportional to the difference between the output
        of the atmospheric monitor and this reference value.

      ATM_PHASE: The computed atmospheric phase correction.

      ATM_UNCORRPH: The phase  uncorrected from atmosphere.

      ATM_CORRPH: The phase  corrected from atmosphere.

      ATM_VALIDITY: 0 or 1 whether the phase correction  has  been  declared
        valid or not.


      CAL_PHASE: The phase instrumental calibration curve.

      CAL_AMPLI: The amplitude instrumental calibration curve.

      AIR_MASS: The number of air masses (1/sin(elev))

      GROUND_EMIS:  The  ground  emission in K (calibrated total power, with
        sky emission subtracted).

      EMISSION:  The total power detected in emission in K (ground + sky)

      TDEWAR1, TDEWAR2, TDEWAR3: The temperatures in the 3-stage cryogenera-
        tors.

      TCABIN,  TCHOP,  TCOLD: The temperatures of the receiver cabin, of the
        ambient load, and the equivalent temperature of the cold load.

      WVRTAMB, WVRTPEL: The temperature of the  water vapor radiometer (WVR)
        ambient load and peltier cooler.

      WVRTCAL1,  WVRTCAL2,  WVRTCAL3 : The channel gains for the 3 frequency
        bands.

      WVRREF1, WVRREF2, WVRREF3 : The average counts on  reference  observa-
        tion

      WVRAVER1,  WVRAVER2, WVRAVER3 : The average counts on current observa-
        tion

      WVRAMB1, WVRAMB2, WVRAMB3 : The average counts on  last  ambient  mea-
        surement

      WVRTREC1, WVRTREC2, WVRTREC3 : The receiver temperatures

      WVRFEFF1, WVRFEFF2, WVRFEFF3 : The coupling factors to sky

      WVRMODE : The calibration mode

      WVRH2O, WVRPATH : The precipitable water vapor and corresponding path-
        length

      WVRTSYS1, WVRTSYS2, WVRTSYS3 : The system temperatures

      WVRDPATH1, WVRDPATH1, WVRDPATH3 : The Kelvin to water vapor pathlength
        (model)

      WVRFPATH1, WVRFPATH2, WVRFPATH3 : The Kelvin to water vapor pathlength
        (empirical)

      WVRLIQ1, WVRLIQ2, WVRLIQ3 : The Kelvin to liquid water emission

      WVRDCLOUD1, WVRDCLOUD2, WVRDCLOUD3 : The Kelvin to liquid water  path-
        length (model)

      WVRTATM : The temperature of atmosphere

      WVRQUAL : The  quality code

      DH_WVR1, DH_WVR2, DH_WVR3 : counts of each WVR channel

      DH_WVRSTAT :  status word

      WVR_PHA_M : The WVR phase value (model)

      WVR_PHA_E : The WVR phase value (empirical)

      WVR_PHA_C : The WVR phase value due to Cloud (Model)

      tatm_s,  tatm_i  : The temperature of the atmosphere in the signal and
        image band

      REFC1, REFC2, REFC2: refraction coefficients.

      REFRACTION: refraction correction.


    The available parameters are the same as with the SET  Y  command.   De-
    fault is SET Y AMPLITUDE PHASE.

    The  /LIMITS option is used to specify fixed limits, e.g.: "SET Y AMPLI-
    TUDE /LIMITS a1 a2" where a1 and a2 are the amplitude limits to be  used
    in  this example.  The codes "*" and "=" may be used. "*" means that the
    limits are automatically adjusted to the data, separately in  each  box;
    "=" means that common limits to all boxes are computed.

    Default limits are provided for AMPLITUDE and PHASE only: 0 * * * if SET
    PHASE CONTINUOUS is effective, 0 * -180 180 if SET  PHASE  JUMPY  DEGREE
    (with corresponding values if SET PHASE RADIANS).

1 SHOW
        CLIC\SHOW Argument

    Display  the  parameters defined by SET. Each "SET Argument" command has
    an equivalent "SHOW Argument".

    In addtion, "SHOW ALL" will display all  parameters  specified  by  SET.
    "SHOW  CRITERIA"  will  display  only selection criteria for the command
    FIND, "SHOW DISPLAY" will give only the parameters relevant  to  command
    PLOT, and "SHOW GENERAL" will give the rest of the parameters.

1 SOLVE
        CLIC\SOLVE Item

    This is a  command  to  determine  interferometer  parameters  from mea-
    sured data. SOLVE is processing the current index.

2 AMPLITUDE
        CLIC\SOLVE AMPLITUDE  [/PLOT] [/BREAK kind time [kind time ...]
        [/POLYNOMIAL [degree]] [/WEIGHT]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    This command fits a mathematical function into the measured amplitude of
    the  sources  in  the current index (presumably calibrators).  This data
    must have been selected and plotted in axes : SET X TIME and SET  Y  AM-
    PLITUDE for the baselines and bands of interest, specified by the corre-
    sponding SET commands. The calibration function is kept in memory.  Com-
    mand  STORE  AMPLITUDE should be used next to store this function in the
    header of source observations, after a change in the index to select the
    appropriate scans.

    SOLVE  AMPLITUDE  internally  and  temporarily  resets  SET AMPLITUDE to
    SCALED.

    In antenna mode (selected by SET AMPLITUDE ANTENNA), the averaged  phase
    and  amplitude  closures  are computed, as well as their standard devia-
    tions. The phase closures should be close to zero, while  the  amplitude
    closures  should  be  close to 100%. Strong deviations of amplitude clo-
    sures from 100% are an indication of amplitude loss on  long  baselines,
    due to phase decorrelation during the time averaging. The fit then shows
    strong systematic errors; if this occurs, baseline based calibration  of
    the amplitudes might be preferred.

    Option /PLOT will plot the fitted curve over the data.

    Fitted curves may be of two kinds:

      -  Cubic splines (the default).  By default knots are regularly spaced
        with an interval between knots set by the SET STEP  command.   Addi-
        tional  knots  may  be  introduced with the option "/BREAK kind time
        [kind time ...]"  which  introduces  a  break  at  abscissa  'time';
        'kind'  is an integer in the range 0-3; 0 means that a discontinuity
        will be present, 1 that the first derivative will be  discontinuous,
        and  so  on.  Several breaks may be introduced. The program will de-
        tect an error if too many breaks are  introduced,  compared  to  the
        density of data points.

      -  Polynomial  curves  may  be  used instead.  For this the option is:
        /POLYNOMIAL [degree] indicating the degree of  the  polynomial  (de-
        fault 0).

    Normally  the  data points are all assigned the same weight for the fit.
    With option /WEIGHT, the data points are weighted according to their er-
    rors.

2 BASELINE
        CLIC\SOLVE BASELINE [/OFFSET b1 dx1 dy1 dz1 b2  ...]
        [/SEARCH range] [/POLYNOMIAL degree]

    This  uses  a  linear method to determine baselines. The baselines to be
    determined must have been selected by the SET BASELINE command, and  the
    data  plotted;  plot  axes must have been previously selected by : SET X
    HOUR_ANGLE DECLINATION and SET Y PHASE. With SET ANTENNA in  action  the
    antenna  position offsets are directly fitted to the antenna phases, en-
    suring baseline closure.

    The fitting should work only if the starting values are  within  half  a
    wavelength  in  any  direction of the true values. Use option /OFFSET to
    correct the phases for an offset (dx1,dy1,dz1)  in  baseline  b1  before
    fitting.   This  is needed if the baseline was wrong by more than half a
    wavelength. Offsets are to be given in meters.

    The results are given as offsets in  meters   to   be   added   to   the
    baseline  used  for  data  acquisition (which may be read by SIC\EXAMINE
    BASELINE).  The total fitted baseline is also given in meters,  as  well
    as  the  rms  of  the residuals in phase units.  Two sets of offsets are
    given:  the first set (dx, dy, dz) are the offsets with respect  to  the
    antenna  positions actually used, while the secoond set (DX, DY, DZ) are
    with respect to the standard antenna coordinates (the default values  in
    OBS).

    The  /SEARCH option  enables  an  automatic  search  with  starting off-
    sets  scanning a 3-d box in dx, dy, dz, by steps of half a wavelength in
    the  three  directions.   The argument range is in meters  (scanning  is
    from  -range/2 to +range/2, default -0.005 to 0.005).  Only the solution
    with the minimum rms is kept.

    With  option /POLYNOMIAL degree, and  if  SET  X  TIME  is  used  in ad-
    dition of HOUR_ANGLE and DECLINATION, a polynomial function of  time  is
    included in the phase function being fitted.  The degree may range  from
    0 (the default) to 3.  In that case command RESIDUALS will also plot the
    residuals as a function of time.

    Use  command  RESIDUALS  BASELINE  to  display  the fit residuals (phase
    should be constant). Use later command PRINT BASELINE to create a proce-
    dure file (named CLIC-BASELINE.OBS) containing the antenna position off-
    sets.  This procedure file may be executed by the observing program  OBS
    on the control computer bure01.

    If  one  specify  elevation  as  an  additional  X  variable (e.g. SET X
    HOUR_ANGLE DECLINATION TIME ELEVATION), then an additional parameter  is
    fitted:  the  offsets  between elevation and azimuth axes (or rather the
    differences between antennas). These differing offsets result in a phase
    effect  proportional  to the cosine of elevation. In antenna mode, these
    offsets are given for each antenna in meters.  In  baseline  mode,  only
    differences  are  computed.  To  further correct for this effect use the
    command MODIFY AXES.

2 DELAY
        CLIC\SOLVE DELAY [/SEARCH range interval] [/PLOT] [/PRINT]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    This uses a linear method to determine delays.  The baselines to be  de-
    termined  must  have  been selected by the SET BASELINE (or SET ANTENNA)
    command, and the data plotted; plot axes must have been  previously  se-
    lected by :SET X I_FREQUENCY and SET Y PHASE.

    The /SEARCH  option  enables  an  automatic  search  with  starting off-
    sets  from -range/2 to +range/2 by steps of given interval.  The default
    range is 200 nanoseconds, with interval of 1 nanosecond.

    With SET ANTENNA in action the antenna delays are directly fitted to the
    antenna phases, ensuring delay closure.

    The results are given in nanoseconds. Use option /PRINT or command PRINT
    DELAY  to  create a procedure file (INTER_OBS:clic-delay.obs) containing
    the fitted antenna delays.  This procedure file may be executed  by  the
    observing program OBS on the control computer bure01.

    With option /PLOT, the fitted phases will be plotted over the data.

2 FLUX
        CLIC\SOLVE FLUX [NOREFERENCE] [BEST n] [REAL] [/RESET]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Calculate  the fluxes of the sources in the current index or the antenna
    efficiencies (Jansky to Kelvin) if the source flux is known.   The  com-
    mand can also be used to bootstrap source fluxes from a known source.

    It  should be used before computing any amplitude calibration, on an in-
    dex covering a reasonably short time interval to  avoid  possible  effi-
    ciency variations.

    The commands should be used in the following way:

      -  The  command SET FLUX is used to define the flux of one, or several
        of the sources in the current index for which  the  flux  is  known.
        Frequencies and dates may be specified.

      -  Then the command SOLVE FLUX will use the sources of known flux (op-
        tionally with matching frequencies and dates) to determine the effi-
        ciencies  for  all  antennas. SOLVE FLUX now gives the decorrelation
        factor relative to the efficiencies logged in the scan headers  (as-
        sumed to be the standard single-dish efficiencies).

      - SOLVE FLUX then uses these antenna efficiences to compute the fluxes
        of all other sources. IF the keyword "BEST n" is present, the n  an-
        tennas  giving the highest fluxes will be used for averaging (n is 1
        to the number of available antennas). Default is n=3.

      - The command SHOW FLUX will give the current flux list. The reference
        sources  are  listed with a "FIXED" keyword, while the fluxes deter-
        mined by SOLVE FLUX are listed as "FREE".

      - SOLVE FLUX /RESET can be used to reset the flux  list  (i.e.  remove
        from  the  list all sources whose flux is not fixed) before process-
        ing.

      - The command PRINT FLUX will create a procedure that may be used lat-
        er to reload these fluxes in CLIC, if needed.

      - The command PRINT FLUX will create a procedure that may be used lat-
        er to reload these fluxes in CLIC, if needed.

      - The command STORE FLUX will store the fluxes and efficiencies in the
        headers of the observations in the current index.

    If no reference sources are available, the keyword NOREFERENCE should be
    given, and the default efficiencies stored in the data  header  will  be
    used (step 2 in the above list is bypassed).

    The keyword REAL forces SOLVE FLUX to use the real part of the visibili-
    ties instead of the amplitude to derive  the  antenna  efficiencies  and
    source fluxes. This is only for test purposes and must not be used with-
    out asking an expert.

2 FIVE
        CLIC\SOLVE FIVE [beam] [/PLOT] [/PRINT]
        [/OUTPUT filename [NEW|APPEND] [FLUX] [TPOINT]]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Find pointing corrections from FIVE point scans.  All  five-point  scans
    in  the  current index are processed by a gaussian fit. Its width can be
    fixed if the argument 'beam' is given (in arcsec).  All  continuum  sub-
    bands  and  both side bands are averaged. The fits may be displayed with
    option /PLOT.

    The  presence  of  option  /PRINT  produces  a   procedure   file   (IN-
    TER_OBS:pointing.obs),  to  be  used  in  OBS for introducing the fitted
    pointing offset.

    The results may also be written on an output ASCII file  if  /OUTPUT  is
    given.   The  file  is  given  extension  .lis by default; a new file is
    opened except if APPEND is given as a second argument of option /OUTPUT.
    The  file  is by default in a format suitable for the determination of a
    pointing model (program POINT at BURE). The presence of  optional  argu-
    ment  FLUX  changes  the output format for the determination of relative
    fluxes (by ASTRO). With argument TPOINT, the output is written in a for-
    mat suitable for processing by the TPOINT program.

2 FOCUS
        CLIC\SOLVE FOCUS [/PLOT] [/COMPRESS timex] [/PRINT]
        [/OUTPUT filename [NEW]] [/TOTAL] [/FIX par1 [value] ...]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Find focus corrections from a FOCUS scan using a parabolic fit.  All fo-
    cus scans in the current index are processed.   All  continuum  subbands
    and  both  side bands are averaged.  SET AVERAGE METHOD SCALAR is recom-
    mended.  The fits may be displayed with option /PLOT.

    The option /COMPRESS may be used to average data in a given time  inter-
    val before processing, to improve the signal-to-noise ratio.  Default is
    4 seconds.

    The presence of option /PRINT produces a procedure  file  (INTER_OBS:fo-
    cus.obs),  to  be  used  in OBS for introducing the fitted focus offset.
    With option /OUTPUT, results of the fit, together with elevation and az-
    imuth, are written in an output ASCII file, for further examination.

    ****** ATF CORNER ******

    With  option /TOTAL, SOLVE FOCUS uses the total power to solve for axial
    focus errors. In that case, option /FIX may be used to fix  one  parame-
    ter. Possible parameters are:

        FOCUS: the axial focus error (mm)
        PEAK: the peak amplitude, in total power units
        WIDTH: the HPW of focus curve  (mm)
        ZERO: the off-source zero level, in total power units

    With  /TOTAL, /COMPRESS does the ON-OFF combination if in beam switching
    mode. In that case ZERO is preferrably fixed to zero (e.g.  SOLVE  FOCUS
    /TOTAL /COMPRESS /PLOT /FIX ZERO 0).

2 GAIN
        CLIC\SOLVE GAIN [SCAN] [/PRINT]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Compute  the receiver gain ratio (Image Side Band over Signal Side Band)
    from correlation data on a continuum source. Compute also  the  LO1  and
    LO3  phases that should be used in real time to have zero phases in both
    side bands.

    The data from all the scans in the current index are averaged except  if
    optional  argument SCAN is given, in which case the gain ratios are com-
    puted for each scan.

    Option /PRINT produces a procedure INTER_OBS:gain.obs to set  the  gains
    (and phases) in OBS.

2 HOLOGRAPHY
        CLIC\SOLVE HOLOGRAPHY [NPOINTS npix] [FREE r1 r2 ...]
        [MODES nmodes] [ITER niter gain] [MASK npanels p1 p2 p3 ...]
        [BASELINES b1 b2 b3 ... ]
        [DISTANCE dist] [DIAMETER diam] [DEFOCUS df]
        [TEST testFile] [FRESNEL] [ASTIGMATISM]
        [/PLOT [AMP amin amax astep] [PHA pmin pmax pstep]
        [ERRORS emin emax estep]  [NUMBER]] [/OFFSET x y z]


    This  command  computes  an antenna surface map from a set of holography
    measurements. The set of scans (procedure HOLO) should have  first  been
    calibrated  in  phase, amplitude and RF passband relative to interspaced
    correlation scans in the direction of the source.  The map will be  com-
    puted from the first band and subband sets chosen with commands SET BAND
    and SET SUBBAND. SET BAND AVERAGE is recommended for continuum  measure-
    ments;  only  continuum  subbands should be used. For line measurements,
    the continuum width of one of the correlator units should match the  ac-
    tual  line  width  for  better  sensitivity.   The antenna to be studied
    should be selected by command SET ANTENNA i.  Data  from  the  baselines
    linking  this  antenna (scanned) to other (fixed) available antennas are
    averaged.


    SOLVING FOR ANTENNA PARAMETERS

    The amplitude and phase maps are obtained by FFT of  the  observed  beam
    map. The maps will be square (npix by npix pixels). The default for npix
    is 64, it should be greater than the number of observed holography scans
    (usually 16 or 32).

    After  FFT a gaussian illumination function is fitted in the amplitudes,
    giving the offset from the center (in meters) and  the  edge  taper  (in
    dB).   If  /PLOT is given, the amplitude map will be displayed (in deci-
    bels), from -15 to 0 dB, with contours in steps of  3db  (these  may  be
    changed using "/PLOT AMP amin, amax and astep").

    A  least square fit is used to correct the phases from a remaining phase
    offset, pointing errors, and focus offsets. The  panel  rings  following
    the  keyword  FREE are not used for this fit. If /PLOT is given, the an-
    tenna normal surface errors will be shown, in micrometers, from -500  to
    500  mum,  with contours in steps of 100 mum (these may be changed using
    "/PLOT ERRORS emin, emax and estep").  If  /PLOT  PHASE  is  given,  the
    residual phase map will be plotted instead of surface errors, in radians
    from -pi to pi, with contours in steps of 0.2 radian. If this map  shows
    remaining  2*pi discontinuities, or if focus offsets larger that 1mm are
    found, you should try using option /OFFSET to correct the phases for  an
    offset  (x,y,z in meters) in the focus coordinates, before fitting. This
    should lead to better rms values.

    The rms values for the phase and the normal surface errors  (in  radians
    and  micrometers)  are given, both with and without amplitude weighting.
    The contribution of the illumination amplitude distribution and  of  the
    observed phase errors to the antenna efficiency are given.

    A gildas image file of the results is kept (e.g. "jj-mmm-yyyy-an1.map"),
    in which plane 3 in the amplitude in dB, plane  4  the  raw  phases  and
    plane  2  the residual phase in radians (plane 1 contains the fitted am-
    plitude, i.e.  a Gaussian).


    SOLVING FOR PANEL DISPLACEMENTS

    Finally, if "PLOT MODE nmodes" is entered with nmodes larger than  0,  a
    listing  of  panels  displacements  is computed. This uses the parameter
    nmodes which is the number of modes used for each panel: 1 is the trans-
    lation  mode only (normal to the antenna surface); 3 (the usual setting)
    adds both tilt modes, radial and tangential, but no panel deformation; 4
    adds  a  torsion mode and 5 a motion of the panel center relative to its
    edges (there are only 5 screws for each  panel,  thus  only  5  possible
    modes).

    The  results  of  this computation is written in a file "panels-an1.dat"
    (or similar name for other antennas). In this file, a line for each pan-
    el  is printed. The first two numbers are the panel numbers, followed by
    up to five screw settings (three only for the  inner  ring).  All  screw
    settings  are  equal  if  nmodes  was  set to 1, only one number is then
    printed.

    The fit is obtained iteratively: the panel orthogonal deformation  modes
    are  computed  from the aperture phase, then the phase change that these
    deformations would have caused is computed (by doing a FFT to  the  beam
    map, doing a cut-off at the observed map size, followed by a FFT back to
    the aperture plane), and subtracted from the aperture phase; second  or-
    der panel deformations are computed from these residuals, and so on. The
    number of iterations niter and a gain to this iterative procedure may be
    specified  (ITER  niter  gain); their default values are 5 and 1.0 . Use
    ITER 0 for no iterative procedure at all. At each step the phase residu-
    al  rms  and the rms of panel deformations fitted are given (weighted by
    the fitted amplitude illumination and  counted  perpendicularly  to  the
    surface).

    Variables containing antenna parameters are available:
      -TAPER_X, TAPER_Y: illumination tapers.
      -OFFSET_X, OFFSET_Y: illumination offsets.
      -RMS_PHA_U,  RMS_PHA_W: phase r.m.s (unweigthed or weighted by illumi-
        nation).
      -ETA, ETA_230, ETA_345: aperture efficiency  at  observing  frequency,
        230 and 345 GHz.
      -JYKEL, JYKEL_230, JYKEL_345: antenna efficiency at observing frequen-
        cy, 230 and 345 GHz.
      -HOLO_FOCUS: focus position.
      -HOLO_RMS: surface r.m.s. (unweighted or weighted by illumination).
      -HOLO_RING: rings r.m.s

    SOLVE HOLOGRAPHY options

    SOLVE HOLOGRAPHY NPOINTS npix

        Gives the number of pixels of the amplitude and phase maps.  Default
        is 64.

    SOLVE HOLOGRAPHY MODE nmodes

        Force  CLIC  to compute the panel displacements (see above).  nmodes
        is 1 to 5.

    SOLVE HOLOGRAPHY ITER niter gain

        Select the number of iteration and gain to be  used  for  the  panel
        displacement determination (see above). Does make sense only if used
        in conjonction with the MODES keyword.

    SOLVE HOLOGRAPHY BASELINES b1 b2 b3 ...

        By default, all baselines connecting the antenna to be studied  (se-
        lected  by  SET  ANTENNA)  to  a fixed antenna are used. The keyword
        BASELINES allows to specifically select the baselines to be used.

    SOLVE HOLOGRAPHY MASK npanels p1 p2 p3 ...



    SOLVE HOLOGRAPHY FREE r1 r2 ...

        Indicates the ring NOT to be used for paraboloid fit.

    SOLVE HOLOGRAPHY ASTIGMATISM NOFOCUS NOXYFOCUS FOCUS


    SOLVE HOLOGRAPHY POINTING FUDGE CHEAT DEFOCUS df DIAMETER



    SOLVE HOLOGRAPHY TEST testFile

        Use a test beam file instead of real data from the CLIC data file.

    SOLVE HOLOGRAPHY DISTANCE dist

        Gives distance of the source, in meters. Not relevant for astronomi-
        cal sources, of course. Any distance larger than than 1000 km (which
        is the default) forces the FRESNEL approximation.

    SOLVE HOLOGRAPHY FRESNEL


        Use Fresnel approximation (use only the Fourier  transform,  neglect
        the  additional  terms in the complex exponential argument). This is
        the default mode for long distance (e.g. astronomical) sources,  but
        must be indicated if a DISTANCE has been entered.

    SOLVE HOLOGRAPHY /OFFSET x y z



    SOLVE  HOLOGRAPHY /PLOT [AMP amin amax astep] [PHA pmin pmax pstep] [ER-
    RORS emin emax estep] [NUMBER]

        With /PLOT, SOLVE HOLOGRAPHY will plots the results:  two  maps  are
        displayed,  which  by default are the amplitude illumination pattern
        (default plot limits are -15dB to 0dB by step of 3dB) and the anten-
        na  normal  surface  errors  (from -500 to 500 mum, with contours in
        steps of 100 mum). The min., max., and steps  can  be  changed  with
        "/PLOT AMP amin amax astep" and "/PLOT ERRORS emin emax estep". With
        "/PLOT PHASE", the phase residuals are plotted instead of  the  sur-
        face errors. Default are from -pi to +pi by step of 0.2 radians.

        If  NUMBER  is  given  as  a  /PLOT argument, the panels numbers are
        drawn.

2 PHASE
        CLIC\SOLVE PHASE [/PLOT] [/BREAK kind time [kind time ...]]
        [/POLYNOMIAL degree] [/WEIGHT]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    This will fit a mathematical function into the measured  phases  of  the
    sources  in  the current index (presumably calibrators).  This data must
    have been selected and plotted in axes : SET X TIME and SET Y PHASE  for
    the  baselines and bands of interest, specified by the corresponding SET
    commands.  Phases should be continuous (SET PHASE CONTINUOUS). The cali-
    bration function is kept in memory. Command STORE should be used next to
    store this function in the header of source observations, after a change
    in the index to select the appropriate scans.

    SOLVE  PHASE  internally  and  temporarily resets SET PHASE to ABSOLUTE.
    The INTERNAL|EXTERNAL mode is kept to allow determining a phase curve on
    top of an external receiver reference.

    In  antenna mode (selected by SET AMPLITUDE ANTENNA), the averaged phase
    and amplitude closures are computed, as well as  their  standard  devia-
    tions.  The  phase closures should be close to zero, while the amplitude
    closures should be close to 100%.

    Option /PLOT will plot the fitted curve over the data.

    Fitted curves may be of two kinds:

      - Cubic splines (the default).  By default knots are regularly  spaced
        with  an  interval between knots set by the SET STEP command.  Addi-
        tional knots may be introduced with the  option  "/BREAK  kind  time
        [kind  time  ...]"   which  introduces  a  break at abscissa 'time';
        'kind' is an integer in the range 0-3; 0 means that a  discontinuity
        will  be present, 1 that the first derivative will be discontinuous,
        and so on.  Several breaks may be introduced. The program  will  de-
        tect  an  error  if  too many breaks are introduced, compared to the
        density of data points.
      - Polynomial curves may be used instead.   For  this  the  option  is:
        /POLYNOMIAL  [degree]  indicating  the degree of the polynomial (de-
        fault 0).

    Normally the data points are all assigned the same weight for  the  fit.
    With option /WEIGHT, the data points are weighted according to their er-
    rors.

2 POINTING
        CLIC\SOLVE POINTING [beam] [/PLOT] [/COMPRESS [timex]] [/PRINT]
        [/OUTPUT filename [NEW|APPEND] [FLUX] [TPOINT]]
        [/TOTAL] [/FIX param1 [value1] param2 [value2] ... ]

    Find pointing corrections from POINTING scans.  All  pointing  scans  in
    the  current  index  are  processed  by a gaussian fit. Its width can be
    fixed if the argument 'beam' is given (in arcsec).  All  continuum  sub-
    bands  and  both  side bands are averaged.  SET AVERAGE METHOD SCALAR is
    recommended. The fits may be displayed with option /PLOT.

    The option /COMPRESS may be used to average data in a given time  inter-
    val before processing, to improve the signal-to-noise ratio.  Default is
    4 seconds.

    The  presence  of  option  /PRINT  produces  a   procedure   file   (IN-
    TER_OBS:pointing.obs),  to  be  used  in  OBS for introducing the fitted
    pointing offset.

    The results may also be written on an output ASCII file  if  /OUTPUT  is
    given.   The  file  is  given  extension  .lis by default; a new file is
    opened except if APPEND is given as a second argument of option /OUTPUT.
    The  file  is by default in a format suitable for the determination of a
    pointing model (program POINT at BURE). The presence of  optional  argu-
    ment  FLUX  changes  the output format for the determination of relative
    fluxes (by ASTRO). With argument TPOINT, the output is written in a for-
    mat suitable for processing by the TPOINT program.

    ****** ATF CORNER ******

    With  option  /TOTAL,  SOLVE  POINTING uses the total power to solve for
    pointing errors. In that case, option /FIX may be used to fix one param-
    eter. Possible parameters are:

        AZ: the azimuth collimation error (arc sec.)
        EL: the elevation collimation error (arc sec.)
        PEAK: the peak amplitude, in total power units
        WIDTH: the HPBW (arc sec.)
        ZERO: the off-source zero level, in total power units

    With  /TOTAL, /COMPRESS does the ON-OFF combination if in beam switching
    mode. In that case ZERO is preferrably fixed to zero (e.g. SOLVE  POINT-
    ING /TOTAL /COMPRESS /PLOT /FIX ZERO 0).

2 RF_PASSBAND
        CLIC\SOLVE RF_PASSBAND [da] [dp] [/PLOT]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Solve  for  passband calibration curves, by fitting it to the amplitudes
    and phases. The current index should contain calibration observations of
    strong continuum sources (RF passband calibrator). The behaviour of this
    command depends on the current mode of RF passband calibration (Frequen-
    cy or Channel).

      -  For  frequency-dependent  RF  passabnd calibration (SET RF_PASSBAND
        FREQUENCY, recommended): the resolution is normally done  using  all
        the  spectral subbands plotted together, as a function of intermedi-
        ate frequency. It should be done separately for upper and lower side
        bands. A single frequency-dependent polynomial is fitted, a high de-
        gree might be necessary for the phase, if band edges are used (up to
        20 is feasible).

      - For channel dependent RF passband calibration (SET RF_PASSBAND CHAN-
        NEL)

        (i) For continuum, the data itself is directly stored as calibration
        values (this gives a channel-dependent passband curve).  In addition
        a polynomial is fitted and optionally plotted (this gives a frequen-
        cy-dependent passband curve).

        (ii) For spectral subbands, polynomials are  fitted  and  optionally
        plotted, as a channel-dependent passband curve.

    The degrees for polynomials are 'da' for amplitude, 'dp' for phase  (de-
    faults  0  and 1). Command STORE should be used next to store the fitted
    function in the header of source observations.  Both  channel  dependent
    and  frequency  dependent curves can be stored; Use command SET RF_PASS-
    BAND FREQUENCY|CHANNEL to apply one or the other.

    Option /PLOT will plot the polynomial fits over the data.

2 SKYDIP
        CLIC\SOLVE SKYDIP [TREC|EFF] [/PLOT]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Compute receiver temperature TREC or antenna forward efficiency EFF from
    skydip  scan.  Default is EFF. All skydip scans in the current index are
    solved.  A graphic display of the solution  can  be  plotted  using  the
    /PLOT  option.  "SET  Y TOTAL" must have been entered before solving the
    skydip, to force the software to use the total power measurements  (oth-
    erwise, autocorrelations will be used).

    The  resulting  receiver temperatures and forwad efficiencies are avail-
    able in the variables  T_REC  and  FORWARD_EFF,  providing  the  command
    "VARIABLE ATMOSPHERE ON" has been issued.

2 TOTAL
        CLIC\SOLVE TOTAL [beam] [/PLOT] [/COMPRESS timex] [/PRINT]
        [/OUTPUT filename [NEW|APPEND] [FLUX] [TPOINT]]

    Find pointing corrections from POINTING scans, but using the total power
    from each antenna.  All pointing scans in the  current  index  are  pro-
    cessed by a gaussian fit. The fits may be displayed with option /PLOT.

    The  option /COMPRESS may be used to average data in a given time inter-
    val before processing, to improve the signal-to-noise ratio.  Default is
    4 seconds. *** option temporarily disabled ***

    The   presence   of   option  /PRINT  produces  a  procedure  file  (IN-
    TER_OBS:pointing.obs), to be used in  OBS  for  introducing  the  fitted
    pointing offset.

    The  results  may  also be written on an output ASCII file if /OUTPUT is
    given.  The file is given extension .lis  by  default;  a  new  file  is
    opened except if APPEND is given as a second argument of option /OUTPUT.
    The file is by default in a format suitable for the determination  of  a
    pointing  model  (program POINT at BURE). The presence of optional argu-
    ment FLUX changes the output format for the  determination  of  relative
    fluxes (by ASTRO). With argument TPOINT, the output is written in a for-
    mat suitable for processing by the TPOINT program.

1 STORE
        CLIC\STORE Keyword

    Writes calibration (or edition) data in the output file.  All  scans  in
    the  current  index  are  processed.

2 AMPLITUDE
        CLIC\STORE AMPLITUDE [/BAND code] [/SELF]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Store  the amplitude calibration determined by the last SOLVE AMPLITUDE.

    One calibration curve is stored for each sideband.  With  option  "/BAND
    code",  one  may  use  the  calibration curve determined with one of the
    sidebands (`code' is UPPER or USB, LOWER or LSB, or AVERAGE or DSB),  to
    calibrate both sidebands.

    With  option "/SELF", the calibration stored will not be the calibration
    curve (as determined from the last SOLVE  AMPLITUDE  command)  but,  for
    each  scan,  the visibility corresponding to the first subband set (eg.,
    SET SUB L01 to L03 ...); data from each side band will be used to  cali-
    brate  the same side band. This provide a simple, easy way to self-cali-
    brate data taken on strong continuum sources (quasars).

    STORE AMPLITUDE and STORE PHASE can be  performed  simultaneously  using
    STORE  AMPLITUDE  PHASE  [/BAND code] [/SELF] [/RECEIVER irec] (the /RE-
    CEIVER option has no meaning for amplitudes).

2 CORRECTION
        CLIC\STORE CORRECTION [GOOD|BAD|AUTO|SELF [tmin]]  [/RECEIVER  irec]
    [/ANTENNA a1 ...] /FRACTION fraction

    Store  in the header of each scan (of the current index) the information
    whether the atmospheric phase correction is or not declared  valid,  and
    should  be  actually  applied when SET PHASE ATM is selected. This is an
    antenna-based flag.

      - GOOD: the atmospheric phase correction is to be used.

      - BAD: the atmospheric phase correction is not to be used.

      - AUTO [tmin]: that information is determined on the phase calibrators
        (type  PHASE),  by  comparing  the scan-averaged amplitudes with and
        without the correction. This information is then propagated  to  the
        neighbouring source observations (type OBJECT), in a +- tmin minutes
        time window.  `tmin' defaults to 15 minutes.

      - SELF: that information is determined on  the  source,  whatever  its
        type may be, by comparing its amplitude with and without the correc-
        tion. This will produce random result if the source has no continuum
        emission.

      -  STORE  CORRECTION  /RECEIVER  irec: the validity  of the correction
        from Receiver 'irec' is used (useful to transfer the correction  va-
        lidity from one frequency to the other).

    With  option /ANTENNA a1 a2 ..., only the specified antennas are consid-
    ered. The correction validity for other antennas is not modified.

    With option /FRACTION fraction, fraction of amplitude will  replace  the
    noise in estimating if uncorrected is better than corrected.

2 FLAG
        CLIC\STORE FLAG f1 f2 ...  [/ANTENNA a1 a2 ...   ]
        [/BASELINE b1 b2 ...] [/RESET]

    Flag  all data in the current index according to the parameters  and op-
    tion  specified.

    Supported flag names are:

    - C01 to C08 for bad individual continuum correlator subbands
    - L01 to L08 for bad individual spectral correlator subbands
    - DATA for bad data
    - TSYS for too high system temperature (antenna based only)
    - LOCK for out of lock local oscillator (antenna based only)
    - POINTING for poor pointing (antenna based only)
    - SHADOW for antenna being shadowed by another antenna (ant. based only)
    - SATURATION for too high total power on a particular antenna
    - TIME for time discontinuity
    - DOPPLER for doppler discontinuity
    - REDU for data reduction

    Use option /RESET to suppress flags that were accidentally set.

    "STORE FLAG"  is  equivalent  to  "MODIFY  DATA  proc.clic",  where  the
    "proc.clic" procedure contains:
          FLAG f1 f2 ... [/ANTENNA a1 a2 ...] [/BASELINE b1 b2 ...] [/RESET]
          GO WRITE
    but it is simpler and faster. All  the  data  records  will  be flagged.

2 FLUX
        CLIC\STORE FLUX

    Store  the source fluxes and antenna efficiencies determined from a pre-
    vious SOLVE FLUX command. Source names, frequencies  (within  1GHz)  and
    dates  (within  a week) must match. See the SOLVE FLUX and SET FLUX com-
    mands.

2 PHASE
        CLIC\STORE PHASE [/BAND code] [/SELF] [/RECEIVER irec]

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Store the phase calibration determined by the last SOLVE PHASE  command.

    One  calibration  curve is stored for each sideband.  With option "/BAND
    code", one may use the calibration curve  determined  with  one  of  the
    sidebands  (`code' is UPPER or USB, LOWER or LSB, or AVERAGE or DSB), to
    calibrate both sidebands.

    With option "/SELF", the calibration stored will not be the  calibration
    curve  (as  determined  from the last SOLVE PHASE command) but, for each
    scan, the visibility corresponding to the first subband  set  (eg.,  SET
    SUB  L01 to L03 ...); data from each side band will be used to calibrate
    the same side band. This provide a simple, easy  way  to  self-calibrate
    data taken on strong continuum sources (quasars).

    With  option  "/RECEIVER irec", the calibration curves solved using data
    from receiver "irec" will be stored in parallel with any other  calibra-
    tion  curve.   This phase curve will be selected by giving SET PHASE EX-
    TERNAL (see this command). In practice, this is used for Receiver 2  da-
    ta,  for  which  the  calibration  curve  determined  with Receiver 1 is
    stored. /BAND may be used in conjunction with /RECEIVER.

    STORE PHASE and STORE AMPLITUDE can be  performed  simultaneously  using
    STORE  AMPLITUDE  PHASE  [/BAND code] [/SELF] [/RECEIVER irec] (the /RE-
    CEIVER option has no meaning for amplitudes).

2 QUALITY
        CLIC\STORE QUALITY code

    Store the data quality to be used as  a  selection  criterion.  All  the
    scans  in  the  current  index are tagged. Code may be an integer in the
    range 0-9, or directly the corresponding quality word:

      0 Unknown
      1 Excellent
      2 Good
      3 Fair
      4 Average
      5 Poor
      6 Bad
      7 Awful
      8 Worst
      9 Deleted

2 RF_PASSBAND
        CLIC\STORE RF_PASSBAND

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    Store the RF passband calibration curves. Channel dependent and frequen-
    cy  dependent  curves  will be simultaneously stored if available.  Cau-
    tion: RF passbands should be stored only for consistent spectral  corre-
    lator configurations.


1 SG_TABLE

        CLIC\SG_TABLE Name [OLD|NEW]
        [/RESAMPLE nc ref val inc code shape width]  [/FFT]
        [/FREQUENCY name rest-freq] [/DROP  n1 n2]
        [/NOCHECK [SOURCE|POINTING|PHASE|EPOCH]]
        [/ADD Item[s]]
        [/POLARIZATION SPLIT|AVERAGE|JOINT]

    Prepare a UV Table, in spectral line mode only, but with added flexibil-
    ity to store more information compared with the TABLE  command.   Polar-
    ization is handled in 3 possible ways, the default being AVERAGE.

    Option  /POLARIZATION  and  /ADD control the details of the polarization
    handling and of the extra information written.

    See Command TABLE for the other options.

2 /POLARIZATION


      SPLIT:         A different visibility for each polarization
      AVERAGE: averaged polarizations before writing
      JOINT:   All channels Polar 1, then All channels polar 2 in visibility

2 /ADD

        CLIC\SG_TABLE Name [OLD|NEW] /ADD Item [Item [...]]

    Add some more information columns.  Possible items are

     U V W DATE TIME IANT JANT
     which  are in principle already present in elements 1 to 7 of the visi-
    bilities.

     L_PHASE_OFF M_PHASE_OFF X_POINT_OFF  Y_POINT_OFF
     which indicate the Phase and Pointing offsets (e.g. for mosaics)

     ELEVATION HOUR_ANGLE PARA_ANGLE
     which can be useful for full polarization measurements

     SCAN ON_TIME WEIGHT
     for bookkeeping

     X_POINT_IANT Y_POINT_IANT X_POINT_JANT Y_POINTJANT
     the antenna pointing errors (used mostly for simulations...)

     RA  DEC  FREQUENCY
     the Source coordinates and Observing frequency (in Real*8, used for
     multisource UV tables, still very experimental)

     STOKES is also a recognized item, but it is handled by  the  /POLARIZA-
    TION option

1 TABLE
        CLIC\TABLE Name [OLD|NEW] [/COMPRESS tmax uvmax]
        [/RESAMPLE nc ref val inc code shape width]  [/FFT]
        [/FREQUENCY name rest-freq] [/DROP  n1 n2]
        [/NOCHECK [SOURCE|POINTING|PHASE|EPOCH]]

    This  command  will  create an UV data Table from the current index.  is
    not given, the most recently created table will be extended.  Next argu-
    ment  may be OLD (default value if not specified) to extend and existing
    table, or NEW to create a new table.

    The bands and subbands used must have been given by the command SET  SE-
    LECTION.  The weighting mode can be modified by the command SET WEIGHTS.

    TABLE /RESAMPLE nc ref val inc code [shape width /FFT]

        Option /RESAMPLE enables to resample data on  a  new  spectral  grid
        (for  line  data).  'nc' is the output number of channels, 'ref' the
        reference channel, 'val' the value of velocity or  frequency  offset
        (with respect to the rest frequency) at the reference channel, 'inc'
        the resolution, 'code' is "V" if the value 'val' and the  resolution
        'inc' are in velocity units, "F" for frequency units.

        The  reference channel thus corresponds to the given 'val' velocity,
        or to the offset 'val' in MHz from the rest frequency present in the
        header or modified by option /FREQUENCY.

        Resampling  is done by default through linear interpolation of input
        channel data. Resampling may also be done  (using  option  /FFT)  in
        Fourier space by cut-off or extrapolation (by zeroes) of the Fourier
        components, after deconvolution by the channel response of the  cor-
        relator  (due to on-line apodization), and followed by reconvolution
        to produce frequency channels of the given 'shape' and 'width'.  Al-
        lowed shapes are:
          TBox = a box in delay space (unapodized correlator)
          Ppar  =  a  parabola in delay space (apodized correlator) (the de-
            fault)
          FBox = a box in frequency space (square filter)
          FTri = a triangle in frequency space (Hanning smoothed square fil-
            ter)
        The  width  is the channel width in units of channel separation (de-
        fault 1).

        Option /FFT is not recommended when joining  together  several  sub-
        bands  to  produce a single spectrum, with a limited number of broad
        channels.  In those cases using the FFT  could  produce  a  spectrum
        with "holes" at the points between subbands with limited overlap.

    TABLE /FREQUENCY  name rest-freq

        Option  /FREQUENCY  is  used to redefine the rest frequency (in MHz)
        and line name for the output table.  The velocity scale is  computed
        accordingly.   This  rest frequency will correspond to the reference
        channel in option RESAMPLE.

    TABLE /NOCHECK [SOURCE|POINTING|PHASE|EPOCH]

        When processing each scan, CLIC checks whether a number of  position
        parameters  are  consistent  with those defined in the table header.
        Option /NOCHECK allows to switch off this checking.   Arguments  can
        be  given  to  switch  off only part of the parameters (SOURCE name,
        POINTING direction, PHASE center, EPOCH of coordinates). This option
        is  intended for building tables with inconsistent parameters (typi-
        cal exemple is a different source name...). It is  potentially  dan-
        gerous and is to be used with caution.

    TABLE /DROP n1 n2 --- THIS OPTION IS OBSOLETE

        Option  /DROP enables to drop the first 'n1' and last 'n2'  channels
        in each subband of the OLD spectral correlator. For the NEW spectral
        correlator  (data  taken  since  summer 1992), it is replaced by the
        commands SET GIBBS and SET DROP.

    TABLE /COMPRESS tmax uvmax

        Option /COMPRESS is used to compress the data  before  writing   the
        table.    This  works like the COMPRESS command, but no intermediate
        file is written. Very seldom used.

2 UVTABLE
        UV Table format

    A UV table is a file in the Gildas Data Format, of  dimension  2.   Each
    column corresponds to a visibility data point. Lines contain respective-
    ly:

      1.  U in meters
      2.  V in meters
      3.  W in meters
      4.  Observation date (integer CLIC Day Number)
      5.  Time in seconds since above date
      6.  Number of start antenna
      7.  Number of end antenna
      8.  First frequency point (real part)
      9.  First frequency point (imaginary part)
      10.  First frequency point (weight)
      11.  Same for second frequency point, and so on.

    See the SET WEIGHT command to select the weighting mode .  The first di-
    mension  is  then  the  3 * Nchan + 7, for Nchan frequency channels. The
    second dimension is the number of UV points measured.

1 TAG
        CLIC\TAG Quality_Code List_of_Observations

    Attributes a quality to a given list of Observations.   Quality_Code  is
    an integer in the range 0-9, and the recommended quality scale is

      0 Unknown
      1 Excellent
      2 Good
      3 Fair
      4 Average
      5 Poor
      6 Bad
      7 Awful
      8 Worst
      9 Deleted

    The operation is immediate  and  occurs  in  the  OUTPUT  file  for  all
    versions  of  all  Observations  specified  in  the list.  If no list is
    given, the R  memory  is  attributed  the  specified  quality.   A  FIND
    operation  will  only  select  Observations of quality better than (i.e.
    less or equal to) the quality specified by the SET QUALITY  command,  or
    in the /QUALITY option.

1 VARIABLES
        CLIC\VARIABLES group ON|OFF

    *** THIS HELP HAS NOT BEEN UPDATED FOR THE NGRX ***

    This command is used to create/delete CLIC  variables  corresponding  to
    header  information.  Several  groups of variables are available, corre-
    sponding to sections in the scan headers.

      READ_WRITE     Input/Output file information (Global)
      GENERAL        General information (Scan based)
      POSITION       Source related information (Scan based)
      CONFIG         Array configuration related information (Scan based)
      RF_SETUP       Receiver related information (Scan based)
      CONTINUUM      Continuum correlator related information (Scan based)
      LINE           Spectral correlator related information (Scan based)
      SCANNING       Special scanning information (Record based)
      ATMOSPHERE     Atm. calibration parameters and results (Scan based)
      MONITOR        Total power monitor information (Scan based)
      WVR            Water Vapor Radiometer information (Scan based)
      DESCRIPTOR     Data descriptor information (Scan based)
      DATA_HEADER    Data header information (Record based)
      DATA_RECORD    Data values (Record based)

    Scan- or record-based variables refer to the last scan  or  record  that
    has been read (explicitely by GET/RECORD, or implicitely by PLOT or oth-
    er commands).

2 READ_WRITE
        CLIC\VARIABLES READ_WRITE ON|OFF

    Input/Output file information (Global).

      IN_FILE          Name if input file
      OUT_FILE         Name of output file
      INBLOC           Block of observation in input file
      IDATA            Address od data section in input observation
      INSEC            Number of sections in header
      INEXT            Next available block in input file
      ONEXT            Next available block in output file
      IXNUM            Index number of current observation in input file
      ISEC [INSEC]     Header sections
      ILEN [INSEC]     Length of header section (words)
      IADD [INSEC]     Addresses of header sections (words)
      IXNEXT           Next available entry in input file index
      OXNEXT           Next available entry in output file index
      CXNEXT           Next available entry in current index
      INWORD           Number of words in current observation
      IDATAL           Length (words) of data section
      MODIFY           (Logical) data is open for modify
      SHARE            (Logical) Output file is shared
      IX_NUM   [ ]     Observation numbers in input file index
      IX_BLOC  [ ]     Blocks numbers of observations in input file
      OX_NUM   [ ]     Observation numbers in output file index
      OX_BLOC  [ ]     Blocks numbers of observations in output file

    The following additional variables are defined by the command FIND:

      FOUND            Number of observations in current index
      CX_NUM   [ ]     Observation numbers in current index
      CX_BLOC  [ ]     Blocks numbers of observations in current index

2 GENERAL
        CLIC\VARIABLES GENERAL ON|OFF

    General information (Scan based).

      TELESCOPE        Telescope name
      RECEIVER         Receiver number
      CONFIGURATION    Interferometer configuration
      NUMBER           Observation number
      VERSION          Observation version number
      DOBS             Day of observation (internal format)
      DATE_OBSERVED    Day of observation (in clear)
      DRED             Day of last reduction (internal format)
      DATE_REDUCED     Day of last reduction (in clear)
      DATATYPE         Type of observation (4 for interferometer data)
      IQUAL            Quality of observation (0-9)
      QUALITY          Quality of observation (Excellent, ... Awful)
      SCAN             Scan number
      UTOBS            Time of observation (radians!)
      TIME_OBSERVED    Time of observation (hh:mm:ss.ss)
      LSTOBS           Sidereal time of observation (radians)
      AZIMUTH          Azimuth of source direction (radians)
      ELEVATION        Elevation of observation (radians)
      TIME             Integration time (minutes)
      PROJECT          Project name
      PROC             Procedure used (internal format)
      PROCEDURE        Procedure used (in clear)
      TYPE_OFF         Type of offsets

2 POSITION
        CLIC\VARIABLES POSITION ON|OFF

    Source related information (Scan based).

      SOURCE           Source name
      LAMBDA           Source longitude-like coordinate (radians)
      BETA             Source latitude-like coordinate (radians)
      OFF_LAMBDA       Offset in lambda (radians)
      OFF_BETA         Offset in beta (radians)
      EPOCH            Epoch of coordinates (if equatorial)
      PROJECTION       Projection used for offsets
      FOCUS            Focus position used
      FLUX             Source flux (Jy) for calibrators
      TYPE_COORD       Type of coordinates

2 CONFIG
        CLIC\VARIABLES CONFIG ON|OFF

    Array configuration related information (Scan based).

      NANT                     Number of antennas
      NBAS                     Number of baselines
      HOUR_ANGLE               Hour angle of observation (hours)
      STATION        [NANT]    Positions of antennas
      PHYS_ANT       [NANT]    Antenna physical numbers
      CORR_INPUT     [NANT]    Correlator input connected for each antenna
      START_ANTENNA  [NBAS]    First antenna of baseline
      END_ANTENNA    [NBAS]    Second antenna of baseline
      BASELINE     [3,NBAS]    Coordinates of baselines (meters)
      ANTENNA      [3,NANT]    Coordinates of antennas (meters)
      AXES_OFFSET    [NANT]    Offsets of El axis from Az axes (meters)
      PHLO1          [NANT]    L01 phase
      PHLO3          [NANT]    L03 phase

2 RF_SETUP
        CLIC\VARIABLES RF_SETUP ON|OFF

    Receiver related information (Scan based).

      LINE             Line name (in OBS)
      FREQUENCY        Rest Frequency (in OBS) (MHz)
      ISB              Side band (1:upper, 2:lower)
      LOCK             Lock
      FLO1             Frequency of First LO (MHz)
      FLO2             Frequency of Second LO (MHz)
      FIF1             First intermediate frequency (MHz)
      VELOCITY         Velocity entered in OBS (km/s)
      TYPE_VEL         Velocity type
      DOPPLER          Doppler correction factor (v/c)

2 CONTINUUM
        CLIC\VARIABLES CONTINUUM ON|OFF

    Continuum correlator related information (Scan based).

      N_SIDEBANDS      Number of present sidebands
      N_SUB_BANDS      Number of continuum sub-bands
      NCDAT            Total number of channels (sidebands x subbands)
      CRCH [2]         Reference channel for sideband
      CVOFF [2]        Velocity for sideband
      CVRES [2]        Velocity resolution
      CRFOFF [2]       Rest frequency (MHz)
      CRFRES [2]       Frequency resolution
      CNAM_U           Line name for Upper side band
      CNAM_L           Line name for Lower side band
      CFCEN [10]       Center frequency for subband (MHz)
      CFWID [10]       Width of subband (MHz)

2 LINE
        CLIC\VARIABLES LINE ON|OFF

    Spectral correlator related information (Scan based).

      N_LINE_BANDS             Number of line subbands
      FOURIER                  (Logical) FFT done, data in frequency space
      TOTAL_CHANNELS           Total number of line channels
      N_CHANNELS     [NSUBB]   Number of channels in subband
      FIRST_CHANNEL  [NSUBB]   First channel in subband
      LFCEN          [NSUBB]   LO3 frequency (channel 1)
      LFRES          [NSUBB]   Frequency resolution (signed)
      REF_CHANNEL  [2,NSUBB]   Reference channel for spectrum
      F_RESOLUTION [2,NSUBB]   Frequency resolution
      F_OFFSET     [2,NSUBB]   Rest frequency in reference channel
      V_RESOLUTION [2,NSUBB]   Velocity resolution
      V_OFFSET     [2,NSUBB]   Velocity in reference channel
      R_LILEVU  [NSUBB,NANT]   Sampling levels (USB)
      R_LILEVL  [NSUBB,NANT]   Sampling levels (LSB)
      PHSELECT  [NANT,NSUBB]   Real-time atm. correction (1: TP, 2:WVR)

2 SCANNING
        CLIC\VARIABLES SCANNING ON|OFF

    Special scanning information (Record based). This is for  Pointing,  Fo-
    cus, Holography, ...

      SCAN_TYPE        Type of special scan (1 focus 2,3 point 4,5 calibr)
      MOBIL   [NANT]   Antennas in motion (logical)
      COLL_AZ [NANT]   Collimation in azimuth (arc sec)
      COLL_EL [NANT]   Collimation in elevation (arc sec)
      COR_FOC [NANT]   The Z focus correction in mm

2 ATMOSPHERE
        CLIC\VARIABLES ATMOSPHERE ON|OFF

    Atmospheric calibration parameters and results (Scan based).

      PRESSURE                 Pressure in hectopascals (zero alt.)
      AMBIANT_T                Outside temperature (K)
      ALTITUDE                 Altitude in kilometers
      HUMIDITY                 Humidity in %
      WATER          [NANT]    Water content (mm)
      TAU_S          [NANT]    Optical depth in signal side band
      TATM_S         [NANT]    Temperature of atmosphere in signal side band
      TAU_I          [NANT]    Optical depth in image side band
      TATM_I         [NANT]    Temperature of atmosphere in image side band
      BEAM_EFF       [NANT]    Beam efficiency
      FORWARD_EFF    [NANT]    Forward efficiency
      T_CHOPPER      [NANT]    Temperature of ambiant load (K)
      T_COLD         [NANT]    Temperature of cold load (K)
      T_REC          [NANT]    Receiver temperature (K)
      GAIN_IMAGE     [NANT]    Gain ratio image/signal
      CHOPPER_COUNTS [NANT]    Measured counts on ambiant load
      COLD_COUNTS    [NANT]    Measured counts on cold load
      SKY_COUNTS     [NANT]    Measured counts on sky
      T_SYS_S        [NANT]    System temperature (signal band)
      T_SYS_I        [NANT]    System temperature (image band)
      CHOPPER_EFF    [NANT]    Chopper efficiency
      CAL_MODE       [NANT]    Calibration reduction mode
      JY_TO_KEL      [NANT]    Jansky to Kelvin conversion factor
      T_CABIN        [NANT]    Temperature in cabin (K)
      T_DEWAR      [3,NANT]    Temperatures in dewar (K)

2 MONITOR
        CLIC\VARIABLES MONITOR ON|OFF

    Total power monitor information (Scan based).

      NREC_MON
      FRS_MON
      FRI_MON
      MAGIC_MON
      WATER_MON       [NANT]
      TAU_S_MON       [NANT]
      TAU_I_MON       [NANT]
      TATM_S_MON      [NANT]
      TATM_I_MON      [NANT]
      FORWARD_EFF_MON [NANT]
      T_CHOPPER_MON   [NANT]
      T_COLD_MON      [NANT]
      T_REC_MON       [NANT]
      GAIN_IMAGE_MON  [NANT]
      CHOP_COUNTS_MON [NANT]
      SKY_COUNTS_MON  [NANT]
      COLD_COUNTS_MON [NANT]
      T_SYS_MON       [NANT]
      CAL_MODE_MON    [NANT]
      PATH_MON        [NANT]
      TEM_MON         [NANT]
      DPATH_MON       [NANT]
      OK_MON          [NANT]

2 WVR
        CLIC\VARIABLES WVR ON|OFF

    Water Vapor Radiometer information (Scan based).

      WVRNCH          [NANT]   Number of channels (=3; 0 if no WVR)
      WVRFREQ  [WVRNCH,NANT]   Central frequencies (MHz)
      WVRBW    [WVRNCH,NANT]   Bandwidths (MHz)
      WVRTAMB         [NANT]   Temp ambient load (K)
      WVRTPEL         [NANT]   Temp Peltier cooler (K)
      WVRTCAL         [NANT]   Calibration temperature (K)
      WVRREF   [WVRNCH,NANT]   Average counts on reference observation
      WVRAVER  [WVRNCH,NANT]   Average counts on current observation
      WVRAMB   [WVRNCH,NANT]   Average counts on last ambient measurement
      WVRTREC  [WVRNCH,NANT]   Receiver temperatures (K)
      WVRLABTREC [WVRNCH,NANT]
      WVRLABTCAL [WVRNCH,NANT]
      WVRLABTDIO [WVRNCH,NANT]
      WVRFEFF  [WVRNCH,NANT]   Coupling factor
      WVRMODE         [NANT]   Calibration mode
      WVRH2O          [NANT]   Precipitable water vapor (mm)
      WVRPATH         [NANT]   Water vapor pathlength (mum)
      WVRTSYS  [WVRNCH,NANT]   System temperature (K)
      WVRDPATH [WVRNCH,NANT]   K to H2O vap. pathlength (model, mum/K)
      WVRFPATH [WVRNCH,NANT]   K to H2O vap. pathlength (empirical, mum/K)
      WVRLIQ   [WVRNCH,NANT]   K to H2O liquid emission (K/K)
      WVRDCLOUD[WVRNCH,NANT]   K to H2O liquid pathlength (mum/K)
      WVRTATM         [NANT]   Temperature of atmosphere (K)
      WVRQUAL         [NANT]   Quality code

2 DESCRIPTOR
        CLIC\VARIABLES DESCRIPTOR ON|OFF

    Data descriptor information (Scan based).

      N_DUMPS                  Number of records
      HEADER_LENGTH            Length of data header (words)
      CONT_LENGTH              Length of continuum data (words)
      LINE_LENGTH              Length of line data (words)

2 DATA_HEADER
        CLIC\VARIABLES DATA_HEADER ON|OFF

    Data header information (Record based).

      DH_DUMP                  Record number
      DH_OBS                   Date of observation (in internal format)
      DH_DATE                  Date of observation (in clear)
      DH_INTEG                 Integration time in seconds
      DH_SVEC[3]               EQ coordinates of source direction
      DH_AFLAG      [NANT]     Antenna flag word
      DH_TOTAL      [NANT]     Total power
      DH_DELCON     [NANT]     Delay used for continuum correlator (ns)
      DH_DELLIN     [NANT]     Delay used for line correlator (ns)
      DH_DELAYC     [NANT]     Computed delay (ns)
      DH_DELAY      [NANT]     Delay offset (ns)
      DH_PHASEC     [NANT]     Computed LO1 phase
      DH_PHASE      [NANT]     LO1 Phase offset
      DH_RATE       [NANT]     Computed fringe rate
      DH_CABLE      [NANT]     Phase of IF cable (at LO2 frequency)
      DH_OFFFOC     [NANT]     Focus offset (mm)
      DH_OFFLAM     [NANT]     Azimuth offset (arc sec) in pointing scans
      DH_OFFBET     [NANT]     Elevation offset (arc sec) in pointing scans
      DH_UVM      [2,NBAS]     U and V for baseline (meters)
      DH_RMSPE    [2,NANT]     AZ and EL pointing errors rms *arc sec.)
      DH_UTC                   UT Time (sec)
      DH_TIME                  UT Time (hh:mm:ss.ss)
      DH_ATFAC    [2,NANT]     Atm. calibration factor [sideband,ant] (K)
      DH_BFLAG      [NBAS]     Baseline Flag word
      DH_INFAC  [2,2,NBAS]     Instrumental factor [real/imag,upp/low,base]
      DH_WVR [WVRNCH,NANT]     Counts of each WVR channel
      DH_WVRSTAT    [NANT]     WVR status word
      DH_TEST0    [10]
      DH_TEST1    [5,NANT]
      DH_GAMME  [NANT]
      DH_RMSPHA [2,NBAS]
      DH_RMSAMP [2,NBAS]
      AMPFAC_L [2,2,NBAS]
      AMPFAC_U [2,2,NBAS]

2 DATA_RECORD
        CLIC\VARIABLES DATA_RECORD ON|OFF

    Data values (Record based).

      DATA_C [CONT_LENGTH]     Continuum data
      DATA_L [LINE_LENGTH]     Line data

    The following additional variables are computed by command MINMAX:

      C_AMPMAX_U [NBAS]        Maximum amplitude, continuum, USB
      L_AMPMAX_U [NBAS]        Maximum amplitude, line, USB
      C_AMPMAX_L [NBAS]        Maximum amplitude, continuum, LSB
      L_AMPMAX_L [NBAS]        Maximum amplitude, line, LSB
      C_AMPMIN_U [NBAS]        Minimum amplitude, continuum, USB
      L_AMPMIN_U [NBAS]        Minimum amplitude, line, USB
      C_AMPMIN_L [NBAS]        Minimum amplitude, continuum, LSB
      L_AMPMIN_L [NBAS]        Minimum amplitude, line, LSB


1 WVR
        CLIC\WVR [/CMODE wvrmode wvrcpol] [/NOWRITE]

    *** THIS HELP IS NOT UPTODATE ***

    This command is used to prepare the atmospheric phase  correction  based
    on the 22 GHz Water Vapor Radiometers (WVR). It process all scans in the
    current index and performs two operations.

    First, it processes the WVR calibration scans (CWVR) to compute receiver
    and  calibration  temperatures of each radiometer. Option /CMODE is used
    to specify the WVR calibration mode:  the  'wvrmode'  parameter  can  be
    equal to:
      - TR_GE: Trec + gain external
      - LAB
      - TREC
      - DIODE
      - NOCAL: no calibration, for test purposes only

    The second argument of /CMODE is 'wvrcpol' which gives the degree of the
    poynomial fit removed from the data.  Default value are: wvrmode = TREC,
    and wvrcpol = 0.

1 ENDOFHELP


