earthkit.meteo.thermo.array.virtual_potential_temperature ========================================================= .. py:function:: earthkit.meteo.thermo.array.virtual_potential_temperature(t, q, p) Compute the virtual potential temperature from temperature and specific humidity. :param t: Temperature (K) :type t: :class:`number` or :class:`array-like` :param q: Specific humidity (kg/kg) :type q: :class:`number` or :class:`array-like` :param p: Pressure (Pa) :type p: :class:`number` or :class:`array-like` :returns: Virtual potential temperature (K) :rtype: :class:`number` or :class:`array-like` The computation is based on the following formula: .. math:: \Theta_{v} = \theta (1 + \frac{1 - \epsilon}{\epsilon} q) where: * :math:`\Theta` is the :func:`potential_temperature` * :math:`\epsilon = R_{d}/R_{v}` (see :data:`earthkit.meteo.constants.epsilon`).