%N mosaical %F $MIR/src/scripts/mosaical.clone
%D A-priori calibration using selfcal
%P mchw
%: user tool
%B
MOSAICAL is a csh script to calibrate and image mosaiced uvdata.
The user specifies the calibrator uv-data and line type to be used
for the antenna gain calibration versus time, and the source uv-data
and line type to be imaged. The antenna gains are derived from the
calibration data with a 30 min time interval and applied to the
source data. The script plots the calibrator amplitude and phase
versus time, the antenna gains, and maps of the calibrator and
source. The script uses some fixed parameters, and some options
are omitted. To customize your data reduction, copy $MIRBIN/mosaical
to your directory.

Inputs:
  P1 uv-data file for calibrator
  P2 uv-data file for source
  P3 PGPLOT device. e.g. /xw (if P3 = /ps , plots are printed)
  P4 MIRIAD line type for calibrator. e.g. wide,1
  P5 MIRIAD line type for source, e.g. channel,4,40,4,10
  P6 MIRIAD data select. e.g. 'amp(0,30),-ant(1)(3)'

Outputs:
  calibrator map and cleaned image.
  source map and mem image.
