ParameterizedWFE
- class poppy.ParameterizedWFE(name='Parameterized Distortion', coefficients=None, radius=<Quantity 1. m>, basis_factory=None, **kwargs)[source]
Bases:
WavefrontError
Define 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.
- Parameters:
- coefficientsiterable 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.
- radiusfloat
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_factorycallable
basis_factory will be called with the arguments
nterms
,rho
,theta
, andoutside
.nterms
specifies how many terms to compute, starting with the j=1 term in the Noll indexing convention fornterms
= 1 and counting up.rho
andtheta
are square arrays holding the rho and theta coordinates at each pixel in the pupil plane.rho
is normalized such thatrho
== 1.0 for pixels atradius
meters from the center.outside
contains the value to assign pixels outside the radiusrho
== 1.0. (Always 0.0, but provided for compatibility withzernike.zernike_basis
andzernike.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
wave
Methods Documentation