skymodel_predict_calibrate

ska_sdp_func_python.sky_model.skymodel_imaging.skymodel_predict_calibrate(bvis, skymodel, context='ng', docal=False, inverse=True, get_pb=None, **kwargs)[source]

Predict visibility for a SkyModel, optionally applying calibration.

A SkyModel consists of an Image and a list of components, optionally with a GainTable.

The function get_pb should have the signature:

get_pb(Visibility, Image)

and should return the primary beam for the Visibility.

Parameters:
  • bvis – Input visibility

  • skymodel – Skymodel

  • context – Imaging context 2d or ng or awprojection

  • get_pb – Function to get a primary beam

  • docal – Apply calibration table in skymodel

  • inverse – True means correction of calibration, False means application of calibration

  • kwargs – Parameters for functions in components

Returns:

Visibility with dft of components, fft of Image, GainTable applied (optional)