:mod:`pytmosph3r.star` ====================== .. py:module:: pytmosph3r.star Module Contents --------------- .. py:class:: Star(temperature=5000, radius=1.0, mass=1.0, r_units='Rsun', m_units='Msun') Bases: :class:`pytmosph3r.log.Logger` Star (blackbody) properties. :param temperature: Stellar temperature (`K`) :type temperature: float, optional :param radius: Stellar radius (by default in `solar radius`, see :py:attr:`r_units` for changing the units) :type radius: float, optional :param mass: Stellar mass (by default in `solar mass`, see :py:attr:`m_units` for changing the units) :type mass: float, optional :param r_units: Length unit for the radius ('m' for meters, 'Rsun' for solar radius, i.e., 695700000 m, ...). See https://docs.astropy.org/en/stable/units/index.html#module-astropy.units for more units. :type r_units: str, optional :param m_units: Mass unit ('kg' for kilograms, 'Msun' for solar mass, i.e., :math:`1.9884099×10^{30} m`, ...). See https://docs.astropy.org/en/stable/units/index.html#module-astropy.units for more units. :type m_units: str, optional .. attribute:: radius Planet radius (in `m`). .. attribute:: mass Planet mass (in `kg`). .. method:: mass_sol(self) Planet mass (in `solar mass`). .. method:: radius_sol(self) Planet radius (in `solar radii`). .. method:: inputs(self) .. py:class:: BlackbodyStar(temperature=5000, radius=1.0, mass=1.0, r_units='Rsun', m_units='Msun') Bases: :class:`pytmosph3r.star.Star` Alias for the base star type