invert_awprojection

ska_sdp_func_python.imaging.base.invert_awprojection(vis: ~ska_sdp_datamodels.visibility.vis_model.Visibility, im: ~ska_sdp_datamodels.image.image_model.Image, dopsf: bool = False, normalise: bool = True, gcfcf=None) -> (<class 'ska_sdp_datamodels.image.image_model.Image'>, <class 'numpy.ndarray'>)[source]

Invert using convolutional degridding and an AW kernel.

Use the Image as a template. Do PSF in a separate call.

Note that the gridding correction function (gcf) and convolution function (cf) can be passed as a partial function. So the caller must supply a partial function to calculate the gcf, cf tuple for an Image model.

Parameters:
  • vis – Visibility to be inverted

  • im – Image template (not changed)

  • dopsf – Make the psf instead of the dirty image

  • normalise – Normalise by the sum of weights (True)

  • gcfcf – Grid correction function i.e. in image space, Convolution function i.e. in uv space

Returns:

Resulting Image