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.

degreeint

Maximum degree of the polynomial.

odd_termsbool, default True

If False, restrict to even l only, ensuring forward, backward symmetry.

Returns:
coeffsndarray

Coefficients of the polynomial, starting with the lowest order.

Notes

Fit uses scipy.special.sph_harm.