CONAN.utils.split_transits#
- CONAN.utils.split_transits(t=None, P=None, t_ref=None, baseline_amount=0.25, input_t0s=None, flux=None, show_plot=True)#
Function to split the transits in the data into individual transits and save them in separate files or to remove a certain amount of data points around the transits while keeping them in the original file. Recommended to set show_plot=True to visually ensure that transits are well separated.
- Parameters:
P (float;) – Orbital period in same unit as t.
t_ref (float;) – reference time of transit - T0 from literature or visual estimate of a mid-transit time in the data Used to calculate expected time of transits in the data assuming linear ephemerides.
baseline_amount (float between 0.05 and 0.5 times the period P;) – amount of baseline data to keep before and after each transit. Default is 0.3*P, has to be between 0.05P and 0.5P.
input_t0s (array, list, (optional);) – split transit using these mid-transit times
show_plot (bool;) – set true to plot the data and show split points.