earthkit.meteo.thermo.array.virtual_potential_temperature¶
- earthkit.meteo.thermo.array.virtual_potential_temperature(t, q, p)¶
Compute the virtual potential temperature from temperature and specific humidity.
- Parameters:
t (
numberorarray-like) – Temperature (K)q (
numberorarray-like) – Specific humidity (kg/kg)p (
numberorarray-like) – Pressure (Pa)
- Returns:
Virtual potential temperature (K)
- Return type:
numberorarray-like
The computation is based on the following formula:
\[\Theta_{v} = \theta (1 + \frac{1 - \epsilon}{\epsilon} q)\]where:
\(\Theta\) is the
potential_temperature()\(\epsilon = R_{d}/R_{v}\) (see
earthkit.meteo.constants.epsilon).