zernike_slope_noll

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

Calculate X/Y slopes for Noll Zernike mode j on grid rho and phi. rho and phi must be radial and azimuthal coordinate grids of identical shape, respectively.

Parameters
jint

j-th Noll Zernike index

rhondarray

Radial coordinate grid

phindarray

Azimuthal coordinate grid

normbool (default: True)

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

Returns
dwx, dwx2D ndarray, 2D ndarray

X/Y wavefront slopes of Noll Zernike mode, j. Same shapes as rho and phi.