CONAN.models.Planet_RV_Model
============================

.. py:function:: CONAN.models.Planet_RV_Model(tt, T0, per, K, sesinw=0, secosw=0, Gamma=0, cst_pars={}, npl=None, custom_RVfunc=None)

   Model the radial velocity curve of planet(s).
   T0, per, K, sesinw, secosw are given as lists of the same length (npl), each element corresponding to a planet.

   :param tt: time stamps
   :type tt: array
   :param T0: transit time of each planet
   :type T0: float, list;
   :param per: period of each planet
   :type per: float, list;
   :param K: RV semi-amplitude of each planet
   :type K: float, list;
   :param sesinw: sqrt(ecc) * sin(omega)
   :type sesinw: float, list;
   :param secosw: sqrt(ecc) * cos(omega)
   :type secosw: float, list;
   :param Gamma: systemic velocity in same units as K
   :type Gamma: float
   :param npl: number of planets. Default: 1
   :type npl: int
   :param custom_RVfunc: object containing the custom RV curve function to be added to or to replace the RVmodel. Default: None
   :type custom_RVfunc: SimpleNamespace
   :param cst_pars: additional parameters for the custom RV curve function. Default: {}
   :type cst_pars: dict

   :returns: **RV_model, model_components** -- the full RV model curve, and the RV model components for each planet
   :rtype: array, dict respectively

   .. rubric:: Examples

   >>> from CONAN.models import Planet_RV_Model
   >>> import matplotlib.pyplot as plt
   >>> import numpy as np

   >>> time = np.linspace(-5,5,300)
   >>> T0 = 0
   >>> per = 2
   >>> K   = 3 #m/s
   >>> sesinw = 0
   >>> secosw = 0

   >>> RV = Planet_RV_Model(time, T0, per, K, sesinw,secosw)

   >>> plt.plot(time, RV)
   >>> plt.axhline(0,ls="--")

