check_for_jumps¶
- tessilator.lc_analysis.check_for_jumps(time, flux, eflux, lc_part, n_avg=10, thresh_diff=10.0)[source]¶
Identify if the lightcurve has jumps.
A jumpy lightcurve is one that has small contiguous data points that change in flux significantly compared to the amplitude of the lightcurve. These could be due to some instrumental noise or response to a non-astrophysical effect. They may also be indicative of a stellar flare or active event.
This function takes a running average of the differences in flux, and flags lightcurves if the absolute value exceeds a threshold. These will be flagged as “jumpy” lightcurves.
- Parameters:
- time
Iterable The time coordinate
- flux
Iterable The original, normalised flux values
- eflux
Iterable The error on “flux”
- lc_part
Iterable The running index for each contiguous data section in the lightcurve
- n_avg
int, optional, default=10 The number of data points to calculate the running average
- thresh_diff
float, optional, default=10.0 The threshold value, which, if exceeded, will yield a “jumpy” lightcurve
- time
- Returns:
- jump_flag
Boolean This will be True if a jumpy lightcurve is identified, otherwise False.
- jump_flag