get_time_segments

tessilator.lc_analysis.get_time_segments(t, t_fac=10.0)[source]

Split the lightcurve into groups of contiguous data

Group data into segments where the time difference between data points is less than some threshold factor, t_fac.

Parameters:
tIter

The list of time coordinates from the lightcurve

t_facfloat, optional, default=10.

A time factor, which is multiplied by the median cadence of the full lightcurve.

Returns:
dslist

The start indices of each time segment

dflist

The final indices of each time segment