CONAN.utils.k_to_Mp#
- CONAN.utils.k_to_Mp(k, P, Ms, i, e, Mp_unit='star')#
Compute the mass of a planet from the rv semi amplitude following https://iopscience.iop.org/article/10.1086/529429/pdf
- Parameters:
k (float, ufloat, array-like;) – The RV semi-amplitude in m/s.
P (float, ufloat, array-like;) – The period of the planet in days.
Ms (float, ufloat, array-like;) – The mass of the star in solar masses.
i (float, ufloat, array-like;) – The inclination of the orbit in degrees.
e (float, ufloat, array-like;) – The eccentricity of the orbit.
Mp_unit (str;) – The unit of the mass of the planet [“star”,”jup”] Default is “star” which returns the mass in units of the mass of the star.
- Returns:
Mp – The mass of the planet in Jupiter masses.
- Return type:
array-like;