COLLECT Wide-phase*.gdf Cont-sol.gdf
DERIVE Cont-sol.gdf Cont-cgains.uvt
READ CGAINS Cont-cgains.uvt
FOR I 1 to 4
READ UV Wide-'i'.uvt
APPLY DELAY /FLAG
WRITE UV Self-Wide-'i'.uvt
NEXT
will average the (antenna-based) Phase calibration solutions (COLLECT)
and compute the corresponding Baseline-based gains (DERIVE).
The loop then applies this better self-calibration solution to
each UV table, scaling the Phases according to Frequency.