webbpsf_ext.maths.radial_std

webbpsf_ext.maths.radial_std(im_diff, pixscale=None, oversample=None, supersample=False, func=<function std>)[source]

Generate contrast curve of PSF difference

Find the standard deviation within fixed radial bins of a differenced image. Returns two arrays representing the 1-sigma contrast curve at given distances.

Parameters
  • im_diff (ndarray) – Differenced image of two PSFs, for instance.

  • Keywords

  • ========

  • pixscale (float) – Pixel scale of the input image

  • oversample (int) – Is the input image oversampled compared to detector? If set, then the binsize will be pixscale*oversample (if supersample=False).

  • supersample (bool) – If set, then oversampled data will have a binsize of pixscale, otherwise the binsize is pixscale*oversample.

  • func_std (func) – The function to use for calculating the radial standard deviation.