atompy.fit_yl0_polynomial#
- atompy.fit_yl0_polynomial(thetas, intensity, degree, odd_terms=True)[source]#
Fit data to a polynomial of \(\sum_l Y_l^0(\theta, 0)\)
- Parameters:
- thetasarray_like
Polar angles of data in rad. \(0 \le \theta \le \pi\).
- intensityarray_like
Corresponding y-data.
- degree
int Maximum degree of the polynomial.
- odd_termsbool, default
True If
False, restrict to evenlonly, ensuring forward, backward symmetry.
- Returns:
- coeffs
ndarray Coefficients of the polynomial, starting with the lowest order.
- coeffs
See also
Notes
Fit uses scipy.special.sph_harm.