update_design_matrix

ska_sdp_func_python.calibration.solver_utils.update_design_matrix(A, dv, wobs, wmdl, gX, gY, dXY, dYX, ant1, ant2)

Update design matrix for a set of visibilities.

Update the normal equation design matrix with the first derivatives of the real and imaginary parts of linearly polarised visibilities for each baseline with respect to all relevant gain and leakage free parameters.

Based on the approach used in ASKAPSoft/YANDASoft gain and leakage solvers.

Parameters:
  • A – Normal equation design matrix to update. Numpy array with shape [8 x num_visibility, 8 x num_antenna]. The factors of 8 come from 4 linear polarisations multiplied by the two complex components (stored sequentially as real,imag).

  • wobs – weighted visibilities. Complex Numpy array with shape [nvis, 2, 2]

  • wmdl – weighted model visibilities. Complex Numpy array with shape [nvis, 2, 2]

  • gX,gY,dXY,dYX – current estimates of the complex gains and leakage terms. Complex Numpy arrays with shape [nant, 2, 2]

  • ant1 – first antenna in each baseline with shape [nvis]

  • ant2 – second antenna in each baseline with shape [nvis]