skyscapes.physical_model.exojax.components.tp
=============================================

.. py:module:: skyscapes.physical_model.exojax.components.tp

.. autoapi-nested-parse::

   Temperature-pressure profile components.



Classes
-------

.. autoapisummary::

   skyscapes.physical_model.exojax.components.tp.PowerLawTPProfile


Module Contents
---------------

.. py:class:: PowerLawTPProfile

   Bases: :py:obj:`skyscapes.physical_model.exojax.components.base.AbstractTPProfile`


   Power-law T-P profile: ``T(P) = T_eq * P^alpha``.

   The two parameters are PyTree leaves but they are passed to
   :meth:`compute_Tarr` as scalar args rather than being read from
   ``self`` so the atmosphere can vmap over per-planet axes without
   extra plumbing.

   Attributes:
       T_eq_K: Reference temperature at 1 bar [K], shape ``(K,)``.
       T_alpha: Power-law exponent, shape ``(K,)``.


   .. py:attribute:: T_eq_K
      :type:  jaxtyping.Array


   .. py:attribute:: T_alpha
      :type:  jaxtyping.Array


   .. py:method:: compute_Tarr(rt_engine, T_eq_K_scalar, T_alpha_scalar)

      ``T(P) = T_eq * P^alpha`` on the rt_engine's layer pressures.



