ZernikeMaskedFit

lsst.ts.wep.cwfs.ZernikeMaskedFit(s, x, y, numTerms, mask, e, nMax=None)

Fit the wavefront surface on pupil (e.g. under the mask) to a linear combination of normal/ annular Zernike polynomials.

Parameters:
snumpy.ndarray

Wavefront surface to be fitted.

xnumpy.ndarray

Normalized x coordinate between -1 and 1 (pupil coordinate).

ynumpy.ndarray

Normalized y coordinate between -1 and 1 (pupil coordinate).

numTermsint

Number of normal/ annular Zernike terms used in the fit.

masknumpy.ndarray[int]

Mask used.

efloat

Obscuration ratio of annular Zernikes.

nMaxint, deprecated

Maximum number of Zernike terms. Unused.

Returns:
numpy.ndarray

Coefficients of normal/ annular Zernike polynomials by the fitting.