getZernikeParity

lsst.ts.wep.utils.getZernikeParity(jmin: int = 4, jmax: int = 22, axis: str = 'x')

Return the parity of the Zernike polynomials (Noll index >= 4).

Parameters

jminint, optional

The minimum Noll index, inclusive. Must be >= 0. (the default is 4)

jmaxint, optional

The maximum Noll index, inclusive. Must be >= jmin. (the default is 22)

axisstr, optional

The axis for which to return the parity. Can be “x” or “y”. (the default is “x”)

Returns

np.ndarray

Array of parities, with +1 corresponding to even parity, and -1 corresponding to odd parity.

Raises

ValueError

If axis is not one of “x” or “y”

ValueError

If jmin is negative or jmax is less than jmin