CONAN.utils.rho_to_tdur
=======================

.. py:function:: 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

   :param rho: The density of the star in g/cm^3.
   :type rho: float, ufloat, array-like;
   :param b: The impact parameter.
   :type b: float, ufloat, array-like;
   :param Rp: planet-to-star radius ratio.
   :type Rp: float, ufloat, array-like;
   :param P: The period of the planet in days.
   :type P: float, ufloat, array-like;
   :param e: The eccentricity of the orbit.
   :type e: float, ufloat, array-like;
   :param w: The argument of periastron in degrees.
   :type w: float, ufloat, array-like;
   :param tra_occ: select duration of transit (tra) or occultation (occ)
   :type tra_occ: str;
   :param total: select total duration T14 (True) or full duration T23 (False)
   :type total: bool;

   :returns: **Tdur** -- The transit duration in days.
   :rtype: array-like;

