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