zernike_slopes

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

Calculate total slope of a set of Zernike modes on a polar coordinate grid, (rho, phi).

Parameters
zv: dict-like or ZernikeVector

ZernikeVector or dict-like with Zernikevector-compatible key naming scheme containing zernike polynomial coefficients.

rhondarray

Radial coordinate grid

phindarray

Azimuthal coordinate grid

normbool (default: True)

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

Returns
xslope, yslope: ndarray, ndarray

Total X and Y slopes of zv at each (rho, phi) point. Same shapes as rho and phi.