earthkit.meteo.thermo.array.potential_temperature

earthkit.meteo.thermo.array.potential_temperature(t, p)

Compute the potential temperature.

Parameters:
  • t (number or array-like) – Temperature (K)

  • p (number or array-like) – Pressure (Pa)

Returns:

Potential temperature (K)

Return type:

number or array-like

The computation is based on the following formula [Wallace2006]:

\[\theta = t \left(\frac{10^{5}}{p}\right)^{\kappa}\]

with \(\kappa = R_{d}/c_{pd}\) (see earthkit.meteo.constants.kappa).