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 oft. Otherwise, iftis a FieldListpmust be a FieldList or an array-like of the same length ast. Iftis a Field,pmust 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).