zernike_basis
- poppy.zernike.zernike_basis(nterms=15, npix=512, rho=None, theta=None, **kwargs)[source]
Return a cube of Zernike terms from 1 to N each as a 2D array showing the value at each point. (Regions outside the unit circle on which the Zernike is defined are initialized to zero.)
- Parameters:
- ntermsint, optional
Number of Zernike terms to return, starting from piston. (e.g.
nterms=1
would return only the Zernike piston term.) Default is 15.- npixint
Desired pixel diameter for circular pupil. Only used if
rho
andtheta
are not provided.- rho, thetaarray_like
Image plane coordinates.
rho
should be 0 at the origin and 1.0 at the edge of the circular pupil.theta
should be the angle in radians.- Other parameters are passed through to `poppy.zernike.zernike`
- and are documented there.