Default arguments for flatten overfit in TESS light curves
See original GitHub issueProblem description
While removing long term trends of TESS light curves, I’ve noticed that the current default arguments for flatten
usually overfit transits.
Example
import lightkurve as lk
pixels = pixels = lk.search_targetpixelfile("wasp-124b").download()
lightcurve = pixels.to_lightcurve()
flat_lightcurve, trend = lightcurve.flatten(return_trend = True)
trend.plot()
exoplanet = flat_lightcurve.fold(period=3.372)
exoplanet.plot()
Expected behavior
Increasing the break_tolerance and the window length helps a lot:
flat_lightcurve, trend = lightcurve.flatten(window_length = 1001, break_tolerance = 50, return_trend = True)
trend.plot()
exoplanet = flat_lightcurve.fold(period=3.372)
exoplanet.plot()
I didn’t see this overfit behavior in Kepler/K2 lightcurves.
Environment:
- platform (e.g. Linux, OSX, Windows): OSX
- lightkurve version (e.g. 1.0b6): I’m living on the bleeding edge (1.1.dev) 😄
- installation method (e.g. pip, conda, source): source
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Removing noise from K2 and TESS light curves using Pixel ...
We can create an uncorrected SAP light curve from this target pixel file using a threshold mask. The dominant trend in the SAP...
Read more >A Data-driven Approach to Detrending TESS Full-frame Image ...
We present unpopular, an open-source Python package to obtain detrended TESS FFI light curves optimized for variable sources.
Read more >Noise Removal - TESS Science Support Center - HEASARC
In this tutorial, we will teach the user how to remove scattered light and noise from a TESS light curve. The splinter session...
Read more >Fitting TESS data — exoplanet 0.1.5 documentation
This aperture produces the following light curve: ... the data one more time with the transits masked so that the de-trending doesn't overfit...
Read more >Exoplanet Detection using Machine Learning - arXiv
Transiting Exoplanet Survey Satellite (TESS) data, we found our method can classify light curves with an accuracy of 0.98, and is able to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note this is near-duplicate of #486
On a related note, some other methods’ default parameters might be tailored to Kepler as well.
transit_duration
forLightCurve.estimate_cdpp()
https://docs.lightkurve.org/api/lightkurve.lightcurve.LightCurve.html#lightkurve.lightcurve.LightCurve.estimate_cdpp