Flatten#
Remove trends from a light curve by flattening.
Overview#
This plugin allows for flattening the light curve by removing trends. By default, the resulting flattened light curve is “unnormalized” by multiplying the flattened light curve by the median of the trend, but this can be disabled through the plugin settings.
UI Access#
User API#
User API Example
See the Flatten user API documentation for more details.
import jdaviz as jd
import lcviz
from lightkurve import search_lightcurve
lc = search_lightcurve("HAT-P-11", mission="Kepler",
cadence="long", quarter=10).download()
jd.load(lc, format="Light Curve")
jd.show()
flatten = jd.plugins['Flatten']
flatten.open_in_tray()
flatten.polyorder = 4
flattened_lc = flatten.flatten(add_data=True)
print(flattened_lc)
See also
This plugin uses the following lightkurve implementations:
lightkurve.LightCurve.flatten()