get_1d_nea

Contents

get_1d_nea#

get_1d_nea(func, xx='-7:7:15j', norm_by_step=True, **kwargs)[source]#

Get the Noise Equivalent Area (NEA) of a 1D function.

Parameters:
  • func (callable) – 1D PSF function such that pixels = func(xx, **kwargs) is an array of shape (n, len(xx)).

  • 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".

  • norm_by_step (bool, optional) – If True, multiply the NEA by the step xx[1] - xx[0] (xx must then be regularly spaced), such that the result does not depend on the sampling: get_1d_nea(func, xx="-9:9:0.5") and get_1d_nea(func, xx="-9:9:0.05") are then equal. Default is True.

  • **kwargs – Goes to func.

Returns:

numpy.ndarray – NEA (integrated over xx), of shape (n,).