get_weights#

xrayvision.imaging.get_weights(vis, scheme='natural', norm=True)[source]#

Return spatial frequency weight factors for each visibility.

Defaults to use natural weighting scheme given by (vis.u**2 + vis.v**2)^{1/2}.

Parameters:
  • vis (Visibilities) – Input visibilities

  • scheme (str) – Weighting scheme to use, defaults to natural

  • norm (bool) – Normalise the weighs before returning, defaults to True.

Return type:

ndarray