earthkit.meteo.thermo.potential_temperature

earthkit.meteo.thermo.potential_temperature(t: ArrayLike, p: ArrayLike) ArrayLike
earthkit.meteo.thermo.potential_temperature(t: xarray.DataArray, p: xarray.DataArray) xarray.DataArray
earthkit.meteo.thermo.potential_temperature(t: earthkit.data.FieldList, p: earthkit.data.FieldList | None = None) earthkit.data.FieldList
earthkit.meteo.thermo.potential_temperature(t: earthkit.data.Field, p: earthkit.data.Field | None = None) earthkit.data.Field

Compute the potential temperature.

Parameters:
  • t (array-like | xarray.DataArray | FieldList | Field) – Temperature (K)

  • p (array-like | xarray.DataArray | FieldList | Field) – Pressure (Pa)

Returns:

Potential temperature (K)

Return type:

array-like | xarray.DataArray | 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).

Implementations

potential_temperature() calls one of the following implementations depending on the type of the input arguments:

The function returns an object of the same type as the input arguments.