getZernikeParity

lsst.ts.wep.utils.getZernikeParity(jmax, axis='x')

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

Parameters:
jmaxint

The maximum Noll index

axisstr, optional

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

Returns:
np.ndarray

The numpy array of parities, starting with Noll index 4. +1 corresponds to even parity, while -1 corresponds to odd parity.

Raises:
ValueError

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