CONAN.utils.rho_to_tdur#
- CONAN.utils.rho_to_tdur(rho, b, Rp, P, e=0, w=90, tra_occ='tra', total=True)#
convert stellar density to transit duration in days https://doi.org/10.1093/mnras/stu318
- Parameters:
rho (float, ufloat, array-like;) – The density of the star in g/cm^3.
b (float, ufloat, array-like;) – The impact parameter.
Rp (float, ufloat, array-like;) – planet-to-star radius ratio.
P (float, ufloat, array-like;) – The period of the planet in days.
e (float, ufloat, array-like;) – The eccentricity of the orbit.
w (float, ufloat, array-like;) – The argument of periastron in degrees.
tra_occ (str;) – select duration of transit (tra) or occultation (occ)
total (bool;) – select total duration T14 (True) or full duration T23 (False)
- Returns:
Tdur – The transit duration in days.
- Return type:
array-like;