ZernikeFit

lsst.ts.wep.utils.ZernikeFit(s, x, y, numTerms)

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.

Returns:
numpy.ndarray

Coefficients of Zernike polynomials by the fitting.