zernike

mmtwfs.zernike.zernike(m, n, rho, phi, norm=False)[source] [edit on github]

Calculate Zernike mode (m, n) on grid rho and phi. rho and phi must be radial and azimuthal coordinate grids of identical shape, respectively.

Parameters
mint

m-th azimuthal Zernike index

nint

n-th radial Zernike index

rho2D ndarray

Radial coordinate grid

phi2D ndarray

Azimuthal coordinate grid

normbool (default: False)

Normalize modes to unit variance (i.e. Noll coefficients)

Returns
wf2D ndarray

Wavefront described by Zernike mode (m, n). Same shape as rho and phi.

Notes

See https://en.wikipedia.org/wiki/Zernike_polynomials and http://adsabs.harvard.edu/abs/2014OptLE..52….7N for details.