get_2dnorm_nea

Contents

get_2dnorm_nea#

get_2dnorm_nea(sigma, xx='-7:7:15j', yy='-7:7:15j', mean=(0, 0), norm_by_step=True)[source]#

Get the Noise Equivalent Area (NEA) of a 2D Gaussian.

This is a shortcut for get_2d_nea with func=get_gaussian2d (see get_gaussian2d).

Parameters:
  • sigma (array_like) – Standard deviations of the Gaussian, in units of xx, of shape (n, 1, 2) with the last axis being (sigma_y, sigma_x) (see Notes of get_2d_nea).

  • xx (str or array_like, optional) – Coordinates where the PSF is evaluated. A string is interpreted as a numpy.r_ slice expression. Default is "-7:7:15j".

  • yy (str or array_like, optional) – Coordinates where the PSF is evaluated. A string is interpreted as a numpy.r_ slice expression. Default is "-7:7:15j".

  • mean (tuple of float, optional) – (x, y) center of the Gaussian. Default is (0, 0).

  • norm_by_step (bool, optional) – Currently ignored: the NEA is always normalized by the pixel area (as with norm_by_step=True in get_2d_nea). Default is True.

Returns:

numpy.ndarray – NEA (integrated over xx and yy), in units of xx squared, of shape (n,).