avocado.AstronomicalObject.subtract_background

AstronomicalObject.subtract_background()

Subtract the background levels from each band.

The background levels are estimated using a biweight location estimator. This estimator will calculate a robust estimate of the background level for objects that have short-lived light curves, and it will return something like the median flux level for periodic or continuous light curves.

Returns:subtracted_observations – A modified version of the observations DataFrame with the background level removed.
Return type:pandas.DataFrame