desc.profiles.PowerSeriesProfile.to_fourierzernike

PowerSeriesProfile.to_fourierzernike(L=6, M=0, N=0, NFP=1, xs=100, w=None)

Convert this profile to a FourierZernikeProfile.

Parameters:
  • L (int) – maximum mode numbers

  • M (int) – maximum mode numbers

  • N (int) – maximum mode numbers

  • NFP (int) – number of field periods

  • xs (int or ndarray) – x locations to use for fit. If an integer, uses that many points linearly spaced between 0,1

  • w (array-like, shape(M,)) – Weights to apply to the y-coordinates of the sample points. For gaussian uncertainties, use 1/sigma (not 1/sigma**2).

Returns:

profile (FourierZernikeProfile) – profile in power series form.