; REFANT
;---------------------------------------------------------------
;! Reference antenna
;# ADVERB CALIBRATION
;-----------------------------------------------------------------------
;;  Copyright (C) 1995, 2020
;;  Associated Universities, Inc. Washington DC, USA.
;;
;;  This program is free software; you can redistribute it and/or
;;  modify it under the terms of the GNU General Public License as
;;  published by the Free Software Foundation; either version 2 of
;;  the License, or (at your option) any later version.
;;
;;  This program is distributed in the hope that it will be useful,
;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;  GNU General Public License for more details.
;;
;;  You should have received a copy of the GNU General Public
;;  License along with this program; if not, write to the Free
;;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
;;  MA 02139, USA.
;;
;;  Correspondence concerning AIPS should be addressed as follows:
;;         Internet email: aipsmail@nrao.edu.
;;         Postal address: AIPS Project Office
;;                         National Radio Astronomy Observatory
;;                         520 Edgemont Road
;;                         Charlottesville, VA 22903-2475 USA
;-----------------------------------------------------------------------
;---------------------------------------------------------------
REFANT    LLLLLLLLLLLLUUUUUUUUUUUU CCCCCCCCCCCCCCCCCCCCCCCCCCCCC
----------------------------------------------------------------
REFANT
Type:  Adverb  (scalar)
Use:   This adverb specifies the desired reference antenna for
       antenna based phase like calibration (e.g. phase, delay
       and rate).  The reference antenna should be picked with
       some care.
Null value:
       0   => pick one.
Verbs:
   OBITPEEL......Access to OBIT task Imager with self-cal and peeling.
   OBITSCAL......Access to OBIT task Imager with self-cal, NOT peeling.
Procedures:
   BASFIT........Fits antenna locations from SN-table data.
   CRSFRING......Procedure to calibrate cross pol. delay and phase
                 offsets.
   DOOSRO........Calibrating amplitude and phase, and imaging VLA data.
   DOVLAMP.......Produces amp calibration file for phased-VLA VLBI data.
   IMFRING.......Large image delay fitting with IM2CC and OOFRING.
   IMSCAL........Large image self-cal with IM2CC and OOCAL.
   OOCAL.........Determines antenna complex gain with frequency-dependent
                 models.
   OOFRING.......Fringe fit data to determine calibration with spectral
                 index options.
   PIPEAIPS......Calibrating amplitude and phase, and imaging VLA data.
   VLACALIB......Runs CALIB and LISTR for VLA observation.
   VLACLCAL......Runs CLCAL and prints the results with LISTR.
   VLARUN........Calibrating amplitude and phase, and imaging VLA data.
   VLBABPSS......Computes spectral bandpass correction table.
   VLBACPOL......Procedure to calibrate cross-polarization delays.
   VLBACRPL......Plots crosscorrelations.
   VLBAFRGP......Fringe fit phase referenced data and apply calibration.
   VLBAFRNG......Fringe fit data and apply calibration.
   VLBAKRGP......Fringe fit phase referenced data and apply calibration.
   VLBAKRNG......Fringe fit data and apply calibration.
   VLBAMPCL......Calculates and applies manual instrumental phase
                 calibration.
   VLBAPCOR......Calculates and applies instrumental phase calibration.
Tasks:
   ACFIT.........Determine antenna gains from autocorrelations.  REFANT
                 is the reference antenna from the template data set.
   BLAPP.........Applies baseline-based fringe solutions a la BLAPP.
   BLAVG.........Average cross-polarized UV data over baselines.
   BPASS.........Computes spectral bandpass correction table.
   CALIB.........Determines antenna calibration: complex gain.
   CLCAL.........Merges and smooths SN tables, applies them to CL tables.
   CPASS.........Computes polynomial spectral bandpass correction table.
   FINDR.........Find normal values for a uv data set.
   FLAGR.........Edit data based on internal RMS, amplitudes, weights.
   FRING.........Fringe fit data to determine antenna calibration, delay,
                 rate.
   HA2TI.........Converts data processed by TI2HA (STUFFER) back to real
                 times.  Hour angles are for REFANT.
   KRING.........Fringe fit data to determine antenna calibration, delay,
                 rate.
   LOCIT.........Fits antenna locations from SN-table data.
   PCAL..........Determines instrumental polarization for UV data.
   PCCOR.........Corrects phases using  PCAL tones data from PC table.
   PLOTC.........Plots color schems used by 3-color plot tasks.
   RLDLY.........Fringe fit data to determine antenna R-L delay
                 difference.
   SCIMG.........Full-featured imaging plus self-calibration loop with
                 editing.
   SCMAP.........Imaging plus self-calibration loop with editing.
   SNPLT.........Plots selected contents of SN, SY, TY, PC or CL files
                 versus time.  RAFANT allows phases and delays to be
                 re-referenced by 2 of the OPTYPEs.
   SNSMO.........Smooths and filters a calibration SN table.
   SPCAL.........Determines instrumental polzn. for spec. line UV data.
   SYVSN.........Plots selected SY/TY data with SN solution values versus
                 time.
   TI2HA.........Modifies times in UV data to hour angles.  Hour angles
                 are for REFANT.
   UVPLT.........Plots data from a UV data base in multiple ways.
   VPLOT.........Plots uv data and model from CC file.
   WIPER.........Plots and edits data from a UV data base using the TV.
----------------------------------------------------------------
