earthkit.meteo.thermo.fieldlist.virtual_temperature

earthkit.meteo.thermo.fieldlist.virtual_temperature(t, q)

Compute the virtual temperature from temperature and specific humidity.

Parameters:
  • t (FieldList|Field) – Temperature (K).

  • q (FieldList|Field) – Specific humidity (kg/kg)

Returns:

Virtual temperature (K). The result has the same type as the input t and q (FieldList or Field).

Return type:

FieldList|Field

The computation is based on the following formula [Wallace2006]:

\[t_{v} = t (1 + \frac{1 - \epsilon}{\epsilon} q)\]

with \(\epsilon = R_{d}/R_{v}\) (see earthkit.meteo.constants.epsilon).