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