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:
timeIterable

The time coordinate

fluxIterable

The original, normalised flux values

efluxIterable

The error on “flux”

lc_partIterable

The running index for each contiguous data section in the lightcurve

n_avgint, optional, default=10

The number of data points to calculate the running average

thresh_difffloat, optional, default=10.0

The threshold value, which, if exceeded, will yield a “jumpy” lightcurve

Returns:
jump_flagBoolean

This will be True if a jumpy lightcurve is identified, otherwise False.