earthkit.meteo.thermo.array.specific_humidity_from_vapour_pressure ================================================================== .. py:function:: earthkit.meteo.thermo.array.specific_humidity_from_vapour_pressure(e, p, eps=0.0001) Compute the specific humidity from vapour pressure. :param e: Vapour pressure (Pa) :type e: :class:`number` or :class:`array-like` :param p: Pressure (Pa) :type p: :class:`number` or :class:`array-like` :param eps: Where p - e < ``eps`` nan is returned. :type eps: :class:`number` :returns: Specific humidity (kg/kg) :rtype: :class:`number` or :class:`array-like` The computation is based on the following formula: .. math:: q = \frac{\epsilon e}{p + e(\epsilon-1)} with :math:`\epsilon = R_{d}/R_{v}` (see :data:`earthkit.meteo.constants.epsilon`).