earthkit.meteo.thermo.xarray.temperature_from_potential_temperature

earthkit.meteo.thermo.xarray.temperature_from_potential_temperature(th, p)

Compute the temperature from potential temperature.

Parameters:
  • th (xarray.DataArray) – Potential temperature (K)

  • p (xarray.DataArray) – Pressure (Pa)

Returns:

Temperature (K)

Return type:

xarray.DataArray

The computation is based on the following formula:

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

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