earthkit.meteo.thermo.fieldlist.potential_temperature

earthkit.meteo.thermo.fieldlist.potential_temperature(t, p=None)

Compute the potential temperature.

Parameters:
  • t (FieldList|Field) – Temperature (K).

  • p (FieldList|Field|Iterable[float]|float|None) – Pressure (Pa). If None, inferred from the field metadata of t. Otherwise, if t is a FieldList p must be a FieldList or an array-like of the same length as t. If t is a Field, p must be a single Field or a float.

Returns:

Potential temperature (K). The result has the same type as the input t (FieldList or Field).

Return type:

FieldList|Field

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).