earthkit.meteo.thermo.xarray.virtual_potential_temperature

earthkit.meteo.thermo.xarray.virtual_potential_temperature(t, q, p)

Compute the virtual potential temperature from temperature and specific humidity.

Parameters:
Returns:

Virtual potential temperature (K)

Return type:

xarray.DataArray

The computation is based on the following formula:

\[\Theta_{v} = \theta (1 + \frac{1 - \epsilon}{\epsilon} q)\]

where: