ZernikeFit

lsst.ts.wep.cwfs.ZernikeFit(s, x, y, numTerms, nMax=None)

Get the coefficients of Zernike polynomials by fitting the wavefront surface.

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 Zernike terms used in the fit.

nMaxint, deprecated

Maximum number of Zernike terms. Unused.

Returns:
numpy.ndarray

Coefficients of Zernike polynomials by the fitting.