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
earthkit.meteo.thermo.virtual_potential_temperature(t: earthkit.data.Field, q: earthkit.data.Field, p: earthkit.data.Field) earthkit.data.Field

Compute the virtual potential temperature from temperature and specific humidity.

Parameters:
  • t (array-like | xarray.DataArray | FieldList | Field) – Temperature (K)

  • q (array-like | xarray.DataArray | FieldList | Field) – Specific humidity (kg/kg)

  • p (array-like | xarray.DataArray | FieldList | Field) – Pressure (Pa)

Returns:

Virtual potential temperature (K)

Return type:

array-like | xarray.DataArray | FieldList | Field

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.