avocado.AstronomicalObject.preprocess_observations

AstronomicalObject.preprocess_observations(subtract_background=True, **kwargs)

Apply preprocessing to the observations.

This function is intended to be used to transform the raw observations table into one that can actually be used for classification. For now, all that this step does is apply background subtraction.

Parameters:
  • subtract_background (bool (optional)) – If True (the default), a background subtraction routine is applied to the lightcurve before fitting the GP. Otherwise, the flux values are used as-is.
  • kwargs (dict) – Additional keyword arguments. These are ignored. We allow additional keyword arguments so that the various functions that call this one can be called with the same arguments, even if they don’t actually use them.
Returns:

preprocessed_observations – The preprocessed observations that can be used for further analyses.

Return type:

pandas.DataFrame