ParameterizedWFE¶
-
class
poppy.ParameterizedWFE(name='Parameterized Distortion', coefficients=None, radius=<Quantity 1. m>, basis_factory=None, **kwargs)[source]¶ Bases:
poppy.wfe.WavefrontErrorDefine an optical element in terms of its distortion as decomposed into a set of orthonormal basis functions (e.g. Zernikes, Hexikes, etc.). Included basis functions are normalized such that user-provided coefficients correspond to meters RMS wavefront aberration for that basis function.
- coefficients : iterable of numbers
- The contribution of each term to the final distortion, in meters RMS wavefront error. The coefficients are interpreted as indices in the order of Noll et al. 1976: the first term corresponds to j=1, second to j=2, and so on.
- radius : float
- Pupil radius, in meters. Defines the region of the input wavefront array over which the distortion terms will be evaluated. For non-circular pupils, this should be the circle circumscribing the actual pupil shape.
- basis_factory : callable
basis_factory will be called with the arguments
nterms,rho,theta, andoutside.ntermsspecifies how many terms to compute, starting with the j=1 term in the Noll indexing convention fornterms= 1 and counting up.rhoandthetaare square arrays holding the rho and theta coordinates at each pixel in the pupil plane.rhois normalized such thatrho== 1.0 for pixels atradiusmeters from the center.outsidecontains the value to assign pixels outside the radiusrho== 1.0. (Always 0.0, but provided for compatibility withzernike.zernike_basisandzernike.hexike_basis.)
Methods Summary
get_opd(wave)Construct the optical path difference array for a wavefront error source as evaluated across the pupil for an input wavefront waveMethods Documentation