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

Replace flux with detrended_flux in characterize_one_flare #41

Closed ekaterinailin closed 4 years ago

ekaterinailin commented 5 years ago

What needs to be created or improved?

The amplitude should be determined from the detrended flux, not from the raw one that contains variablity and so on.

Can you provide an example?

472     ampl = np.max(flc.flux[f.istart:f.istop])/flc.it_med[f.istart]-1.
#to
472     ampl = np.max(flc.detrended_flux[f.istart:f.istop])/flc.it_med[f.istart]-1.
ekaterinailin commented 4 years ago

Is implemented in altai.py in find_flares