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 (
stror array_like, optional) – Coordinates where the PSF is evaluated. A string is interpreted as anumpy.r_slice expression. Default is"-7:7:15j".norm_by_step (
bool, optional) – If True, multiply the NEA by the stepxx[1] - xx[0](xxmust then be regularly spaced), such that the result does not depend on the sampling:get_1d_nea(func, xx="-9:9:0.5")andget_1d_nea(func, xx="-9:9:0.05")are then equal. Default is True.**kwargs – Goes to
func.
- Returns:
numpy.ndarray– NEA (integrated overxx), of shape(n,).