CONAN.models.TTV_Model
======================

.. py:function:: CONAN.models.TTV_Model(tarr, rho_star=None, dur=None, T0_list=None, RpRs=None, b=None, per=None, sesinw=[0], secosw=[0], ddf=0, occ=0, Fn=None, delta=None, A_ev=0, f1_ev=0, A_db=0, q1=0, q2=0, split_conf=None, ss=None, vcont=0, Rstar=None, grprs=0, custom_LCfunc=None, cst_pars={})

   computes the TTV model for a given set of parameters along with the baseline

   :param tarr: The timestamps of the lightcurve
   :type tarr: array-like
   :param rho_star: Stellar density [g/cm^3]
   :type rho_star: float
   :param dur: Duration of the transit [days]
   :type dur: float
   :param T0_list: transit times in each chunk of the data
   :type T0_list: list
   :param RpRs: Planet-to-star radius ratio
   :type RpRs: list
   :param b: Impact parameter
   :type b: list
   :param per: Orbital period [days]
   :type per: list
   :param sesinw: sqrt(ecc)*sin(omega)
   :type sesinw: list
   :param secosw: sqrt(ecc)*cos(omega)
   :type secosw: list
   :param ddf: if ddf is not 0, then depth variation is being used and this value is added to the base rprs, gr
   :type ddf: float
   :param occ: Occultation depth in ppm
   :type occ: float
   :param Fn: nightside flux ratio in ppm
   :type Fn: float
   :param delta: hotspot shift of the atmospheric variation in degrees
   :type delta: float
   :param A_ev: semi-Amplitude of the ellipsoidal variation in ppm
   :type A_ev: float
   :param f1_ev: fractional constant of the EV model
   :type f1_ev: float;
   :param A_db: semi-Amplitude of the Doppler boosting in ppm
   :type A_db: float
   :param q1: LD coefficient 1
   :type q1: float
   :param q2: LD coefficient 2
   :type q2: float
   :param split_conf: The configuration for the split data
   :type split_conf: SimpleNamespace
   :param ss: The configuration for the supersampling
   :type ss: SimpleNamespace
   :param vcont: contamination factor
   :type vcont: float
   :param Rstar: Stellar radius in Rsun. used to calculate light travel time correction. Default: None to not perform light travel time correction
   :type Rstar: float
   :param custom_LCfunc: object containing the custom light curve function to be added to the model. Default: None
   :type custom_LCfunc: SimpleNamespace
   :param cst_pars: additional parameters for the custom light curve function. Default: {}
   :type cst_pars: dict

   :returns: * **mm** (*array-like*) -- The lightcurve model for the given parameters
             * **model_components** (*dict*) -- The components of the model for each planet in a system

   .. rubric:: Examples

   >>> from CONAN.models import TTV_Model
   >>> from CONAN.utils import split_transits
   >>> import numpy as np
   >>> spt = split_transits(t, P=[0.9414526], t_ref=[1375.1698], flux=f)
   >>> trans_mod,_ = TTV_Model(t, rho_star = rho_star, T0=spt.t0_list, RpRs=[RpRs], b =[b],
   >>>                         per=[per], sesinw=sesinw, secosw=secosw, q1=q1, q2=q2, split_conf=spt)

