earthkit.meteo.thermo.virtual_potential_temperature

earthkit.meteo.thermo.virtual_potential_temperature(t: ArrayLike, q: ArrayLike, p: ArrayLike) ArrayLike
earthkit.meteo.thermo.virtual_potential_temperature(t: xarray.DataArray, q: xarray.DataArray, p: xarray.DataArray) xarray.DataArray
earthkit.meteo.thermo.virtual_potential_temperature(t: earthkit.data.FieldList, q: earthkit.data.FieldList, p: earthkit.data.FieldList) earthkit.data.FieldList

Compute the virtual potential temperature from temperature and specific humidity.

Parameters:
  • t (number or array-like) – Temperature (K)

  • q (number or array-like) – Specific humidity (kg/kg)

  • p (number or array-like) – Pressure (Pa)

Returns:

Virtual potential temperature (K)

Return type:

number or array-like

The computation is based on the following formula:

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

where:

Implementations

virtual_potential_temperature() calls one of the following implementations depending on the type of the input arguments:

The function returns an object of the same type as the input arguments.