normal_equation_solve_with_presumming

ska_sdp_func_python.calibration.alternative_solvers.normal_equation_solve_with_presumming(vobs, vmdl, wgt, ant1, ant2, gain, ch, niter, tol)

Solve this time and frequency slice of the gain table

Within each iteration the system of antenna-based gain and leakage terms is linearised into least-squares Normal equations and solved. It is based on the Yandasoft solver. Pre-summation of visibility products is carried out within each time and frequency solution interval to avoid multiple passes over the data. This improves performance for large solution intervals.

See the CalIm presentation by Maxim Voronkov for more details: https://indico.skatelescope.org/event/171/contributions/1007/

Parameters:
  • vobs – observed vis ndarray [ntime, nbaseline, nfreq, 2, 2]

  • vmdl – model vis ndarray [ntime, nbaseline, nfreq, 2, 2]

  • wgt – vis weights ndarray [ntime, nbaseline, nfreq]

  • ant1 – ndarray containing the first antenna in each baseline

  • ant2 – ndarray containing the second antenna in each baseline

  • gain – gain ndarray to be updated [ntime, nbaseline, nfreq, 2, 2]

  • ch – gain table channel to be updated

  • niter – Maximum number of iterations

  • tol – Iteration stops when the fractional change in the gain solution is below this tolerance