CONAN.utils.rho_to_aR#
- CONAN.utils.rho_to_aR(rho, P, e=0, w=90, qm=0)#
convert stellar density to semi-major axis of planet with a particular period. uses eqn 39 of kipping 2010 https://doi.org/10.1111/j.1365-2966.2010.16894.x to account for eccentricity
- Parameters:
rho (float, ufloat, array-like;) – The density of the star in g/cm^3.
P (float, ufloat, array-like;) – The period of the planet in days.
e (float, ufloat, array-like;) – The eccentricity of the orbit. Default is 0
w (float, ufloat, array-like;) – The argument of periastron in degrees. Default is 90
qm (float, ufloat, array-like;) – The mass ratio of the planet to the star. Default is 0 (Mp<<Ms)
- Returns:
aR – The scaled semi-major axis of the planet.
- Return type:
array-like;