Daily Gain Calibration
Similar as reference complex gain calibration, daily gain calibration (Phase Cal) refers to determining the "system" amplitude and phase as a function of IF band. Typically, Phase Cal would be carried out three times between two reference gain calibrations every day. I have a routine to retrieve and analyze the daily Phase Cal data, named phacal_anal.py. Start from a timestamp or a "refcal" dictionary returned from ra.sql2refcal of the day
import phacal_anal as pa from util import Time t = Time('2017-07-03 15:00') pa.phacal_anal(t)
to be completed...