apply_calibration_chain

ska_sdp_func_python.calibration.chain_calibration.apply_calibration_chain(vis, gaintables, calibration_context='T', controls=None, iteration=0, inverse=True)[source]

Update the Visibility using the calibrated solutions in the form of GainTables.

The context string can denote a sequence of calibrations e.g. TGB. Currently, we do not support inputting different timescales.

Parameters:
  • vis – Visibility

  • gaintables – Calibrated gaintables Can be a GainTable, a List or a Dict of GainTables

  • calibration_context – calibration contexts in order of correction e.g. ‘TGB’

  • controls – Controls dictionary, modified as necessary

  • iteration – Iteration number to be compared to the ‘first_selfcal’ field.

  • inverse – The inverse operation of applying a gain table to a visibility

Returns:

Visibility after calibration solution applied Or return original visibility if the GainTables provided don’t match the calibration context.