CONAN.utils.split_transits
==========================

.. py:function:: 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.

   :param P: Orbital period in same unit as t.
   :type P: float;
   :param t_ref: 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.
   :type t_ref: float;
   :param baseline_amount: 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.
   :type baseline_amount: float between 0.05 and 0.5 times the period P;
   :param input_t0s: split transit using these mid-transit times
   :type input_t0s: array, list, (optional);
   :param show_plot: set true to plot the data and show split points.
   :type show_plot: bool;

