earthkit.meteo.thermo.array.virtual_temperature =============================================== .. py:function:: earthkit.meteo.thermo.array.virtual_temperature(t, q) Compute the virtual temperature from temperature and specific humidity. :param t: Temperature (K)s :type t: :class:`number` or :class:`array-like` :param q: Specific humidity (kg/kg) :type q: :class:`number` or :class:`array-like` :returns: Virtual temperature (K) :rtype: :class:`number` or :class:`array-like` The computation is based on the following formula [Wallace2006]_: .. math:: t_{v} = t (1 + \frac{1 - \epsilon}{\epsilon} q) with :math:`\epsilon = R_{d}/R_{v}` (see :data:`earthkit.meteo.constants.epsilon`).