CONAN.models.Planet_RV_Model

CONAN.models.Planet_RV_Model#

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.

Parameters:
  • tt (array) – time stamps

  • T0 (float, list;) – transit time of each planet

  • per (float, list;) – period of each planet

  • K (float, list;) – RV semi-amplitude of each planet

  • sesinw (float, list;) – sqrt(ecc) * sin(omega)

  • secosw (float, list;) – sqrt(ecc) * cos(omega)

  • Gamma (float) – systemic velocity in same units as K

  • npl (int) – number of planets. Default: 1

  • custom_RVfunc (SimpleNamespace) – object containing the custom RV curve function to be added to or to replace the RVmodel. Default: None

  • cst_pars (dict) – additional parameters for the custom RV curve function. Default: {}

Returns:

RV_model, model_components – the full RV model curve, and the RV model components for each planet

Return type:

array, dict respectively

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="--")