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
Compute the potential temperature.
- Parameters:
t (
numberorarray-like) – Temperature (K)p (
numberorarray-like) – Pressure (Pa)
- Returns:
Potential temperature (K)
- Return type:
numberorarray-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).Implementations¶
potential_temperature()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.thermo.array.potential_temperature()for array-likeearthkit.meteo.thermo.xarray.potential_temperature()for xarray.DataArrayearthkit.meteo.thermo.fieldlist.potential_temperature()for FieldList
The function returns an object of the same type as the input arguments.