getZernikeParity#

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

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

Parameters:
  • jmin (int, optional) – The minimum Noll index, inclusive. Must be >= 0. (the default is 4)

  • jmax (int, optional) – The maximum Noll index, inclusive. Must be >= jmin. (the default is 22)

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

Returns:

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

Return type:

np.ndarray

Raises:
  • ValueError – If axis is not one of “x” or “y”

  • ValueError – If jmin is negative or jmax is less than jmin