stacked_seds.photometry.fit_background

stacked_seds.photometry.fit_background(radii, radial_profile, fit_range)[source]

Fits a quadratic function to the background of a radial profile.

Parameters:
  • radii (np.ndarray) – Array of radial distances.

  • radial_profile (np.ndarray) – Array of flux values at each radius.

  • fit_range (list) – A list [start, end] defining the pixel range for the fit.

Returns:

The modeled background flux at each radius.

Return type:

np.ndarray