earthkit.meteo.thermo.fieldlist.virtual_potential_temperature

earthkit.meteo.thermo.fieldlist.virtual_potential_temperature(t, q, p=None)

Compute the virtual potential temperature from temperature and specific humidity.

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

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

  • p (FieldList|Field|Iterable[float]|float|None) – Pressure (Pa). If None, inferred from the field metadata of t. Otherwise, if t is a FieldList p must be a FieldList or an array-like of the same length as t. If t is a Field, p must be a single Field or a float.

Returns:

Virtual potential 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:

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

where: