fit_polynomial_to_log_radial_intensity¶
- sunkit_image.radial.fit_polynomial_to_log_radial_intensity(radii, intensity, degree)[source]¶
Fits a polynomial of a given degree to the log of the radial intensity.
- Parameters:
radii (
astropy.units.Quantity
) – The radii at which the fitted intensity is calculated, nominally in units of solar radii.intensity (
numpy.ndarray
) – The 1D intensity array to fit the polynomial for.degree (
int
) – The degree of the polynomial.
- Returns:
numpy.ndarray
– A polynomial of degree,degree
that fits the log of the intensity profile as a function of the radius.