earthkit.meteo.thermo.array.temperature_from_potential_temperature ================================================================== .. py:function:: earthkit.meteo.thermo.array.temperature_from_potential_temperature(th, p) Compute the temperature from potential temperature. :param th: Potential temperature (K) :type th: :class:`number` or :class:`array-like` :param p: Pressure (Pa) :type p: :class:`number` or :class:`array-like` :returns: Temperature (K) :rtype: :class:`number` or :class:`array-like` The computation is based on the following formula: .. math:: t = \theta (\frac{p}{10^{5}})^{\kappa} with :math:`\kappa = R_{d}/c_{pd}` (see :data:`earthkit.meteo.constants.kappa`).