gen_coherency_products

ska_sdp_func_python.calibration.solver_utils.gen_coherency_products(Som, Smm, vobs, vmdl, wgt, ant, ant1, ant2)

Accumulate jones_substitution products for antenna ant.

Generate the 2x2 accumulations of coherency matrix products for antenna ant. Using a boolean mask for each antenna and expanding all of the matrix multiplication operations is faster than looping over baselines.

Parameters:
  • Som – accumulation matrices for observed vis multiplied by the Hermitian transpose of model vis [nant, nfreq, 2, 2]

  • Smm – accumulation matrices for model vis multiplied by the Hermitian transpose of model vis [nant, nfreq, 2, 2]

  • 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]

  • ant – integer index of antenna to accumulate

  • ant1 – ndarray containing the first antenna in each baseline

  • ant2 – ndarray containing the second antenna in each baseline