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:
  • t (xarray.DataArray) – Temperature (K)

  • q (xarray.DataArray) – Specific humidity (kg/kg)

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

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: