zernike¶
-
hcipy.mode_basis.
zernike
(n, m, D=1, grid=None, radial_cutoff=True, cache=None)¶ Evaluate the Zernike polynomial on a grid.
- Parameters
- nint
The radial Zernike order.
- mint
The azimuthal Zernike order.
- Dscalar
The diameter of the Zernike polynomial.
- gridGrid
The grid on which to evaluate the Zernike polynomial. If this is None, a Field generator will be returned.
- radial_cutoffboolean
Whether to apply a circular aperture to cutoff the modes.
- cachedictionary or None
A dictionary containing previously calculated Zernike modes on the same grid. This function is for speedup only, and therefore the cache is expected to be valid. You can reuse the cache for future calculations on the same exact grid. The given dictionary is updated with the current calculation.
- Returns
- Field or Field generator
The evaluated Zernike polynomial. If grid is None, a Field generator is returned, which evaluates the Zernike polynomial on the supplied grid.