BaseCwfsTestCase¶
- class lsst.ts.wep.cwfs.BaseCwfsTestCase¶
Bases:
object
Base class for CWFS tests
Methods Summary
calcWfErr
(centroidFindType, fieldXY, ...[, ...])Calculate the wavefront error.
compareDiffWithTol
(wfErr, wfErrAns, tolMax, ...)Compare the difference between calculated wavefront error and answer with the tolerance.
Methods Documentation
- calcWfErr(centroidFindType, fieldXY, camType, algoName, opticalModel, instParams, imageIntra=None, imageExtra=None, imageFileIntra=None, imageFileExtra=None)¶
Calculate the wavefront error.
- Parameters:
- centroidFindTypeenum ‘CentroidFindType’
Algorithm to find the centroid of donut.
- fieldXYtuple or list
Position of donut on the focal plane in degree (field x, field y).
- camTypeenum ‘CamType’
Camera type.
- algoNamestr
Algorithm configuration file to solve the Poisson’s equation in the transport of intensity equation (TIE). It can be “fft” or “exp” here.
- opticalModelstr
Optical model. It can be “paraxial”, “onAxis”, or “offAxis”.
- instParamsdict
Instrument Configuration Parameters to use.
- imageIntranumpy.ndarray, optional
Array of intra-focal image. (the default is None.)
- imageExtranumpy.ndarray, optional
Array of extra-focal image. (the default is None.)
- imageFileIntrastr, optional
Path of intra-focal image file. (the default is None.)
- imageFileExtrastr, optional
Path of extra-focal image file. (the default is None.)
- Returns:
- numpy.ndarray
Zernike polynomials of z4-zn in nm.
- compareDiffWithTol(wfErr, wfErrAns, tolMax, tolRms)¶
Compare the difference between calculated wavefront error and answer with the tolerance.
- Parameters:
- wfErrnumpy.ndarray
Calculated wavefront error.
- wfErrAnsnumpy.ndarray
Answer of wavefront error.
- tolMaxfloat
Tolerance of maximum difference of wavefront errors.
- tolRmsfloat
Tolerance of difference of root mean square (RMS).