Data cleaning and Detrending
removing outliers
made a simple z score calculation, just removes values 3 standard deviations away, got a “nice enough” result and removed like ~2000 values from ~64000 values (4 years of data) lmao
detrending
why: this was important, cuz the telescope moves around to protect its instruments from the sun and various other reasons, so there can be gaps which look like a transit but they arent, they are slow and long in transition unlike a real exoplanet between the star and the telescope, that transit will be like an instant sharp dip, so i had to smooth out those false values
__
used a basic moving window median to divide out those values, you can see the before and after of detrending in first two pics
and this is how the script runs:
python detrend.py --input lightcurve.json --output detrended.json --window 50
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.