ekaterinailin / AltaiPony

Find flares in Kepler and TESS light curves. Notebooks for quickstart inside.
https://altaipony.readthedocs.io
MIT License
26 stars 10 forks source link

Use k2sc for detrending of raw K2 light curves #4

Closed ekaterinailin closed 6 years ago

ekaterinailin commented 6 years ago

What needs to be created or improved?

Not every K2 TPF has k2sc de-trended light curves. You need to grab a raw TPF and de-trend it using k2sc.

Can you provide an example?

get_k2sc_lc(file, EPIC_ID==None):
 if EPIC_ID != None & grab_from_k2sc_archive() == Error:
    lc = grab_from_mast()
    lc = lc.k2sc()

What is the goal / expected behaviour?

AltaiPony should be able to treat any observed K2 target.

ekaterinailin commented 6 years ago

A 0.1 - worthy solution is FlareLightCurve.detrend()