zernike_strehl_ratio#

pyzernike.zernike_strehl_ratio(coefficients: Sequence[float] | ndarray, wavelength: Real, *, normalize: bool = False) → float[source]#

Approximate the Strehl ratio of a wavefront described by the coefficients of Zernike polynomials.

The Strehl ratio \(S\) is the ratio of the peak intensity of the point spread function to the peak intensity of the aberration-free system. For small aberrations, it depends only on the RMS \(\sigma\) of the wavefront (see pyzernike.zernike_rms()), with the extended Maréchal approximation [1]:

\[S \approx \exp\left( -\left( \frac{2 \pi \sigma}{\lambda} \right)^2 \right)\]

The approximation is accurate for \(S \gtrsim 0.3\) (\(\sigma \lesssim \lambda / 6\)). The Maréchal criterion of a diffraction-limited system, \(\sigma \leq \lambda / 14\), corresponds to \(S \geq 0.8\).

See also

Parameters:
  • coefficients (Union[Sequence[float], numpy.ndarray]) – The coefficients \(c_j\) of the wavefront in the OSA/ANSI ordering, as a 1D array of \(P = \frac{(N+1)(N+2)}{2}\) finite real numbers.

  • wavelength (Real) – The wavelength \(\lambda\), in the unit of the coefficients (e.g. both in micrometers, or the coefficients in waves and wavelength=1). Must be finite and strictly positive.

  • normalize (bool, optional) – If True, the coefficients are those of the polynomials normalized by the factors of Noll (see pyzernike.zernike_normalization()). Default is False.

Returns:

The approximated Strehl ratio \(S \in (0, 1]\).

Return type:

float

Raises:
  • TypeError – If coefficients can not be converted to an array of real numbers, if wavelength is not a real number, or if normalize is not a boolean.

  • ValueError – If coefficients is not a 1D array of finite values whose length is \(\frac{(N+1)(N+2)}{2}\), or if wavelength is not finite or not strictly positive.

References

Examples

A normalized defocus of \(\lambda / 14\) RMS gives a Strehl ratio of about 0.82:

from pyzernike import zernike_strehl_ratio

zernike_strehl_ratio([0.0, 0.0, 0.0, 0.0, 1 / 14, 0.0], wavelength=1.0, normalize=True)  # 0.8176...