earthkit.meteo.thermo.array.relative_humidity_from_specific_humidity ==================================================================== .. py:function:: earthkit.meteo.thermo.array.relative_humidity_from_specific_humidity(t, q, p) Compute the relative humidity from specific humidity. :param t: Temperature (K) :type t: :class:`array-like` :param q: Specific humidity (kg/kg) :type q: :class:`array-like` :param p: Pressure (Pa) :type p: :class:`array-like` :returns: Relative humidity (%) :rtype: :class:`array-like` The computation is based on the following formula: .. math:: r = 100 \frac {e(q, p)}{e_{msat}(t)} where: * :math:`e` is the vapour pressure (see :func:`vapour_pressure_from_specific_humidity`) * :math:`e_{msat}` is the :func:`saturation_vapour_pressure` based on the "mixed" phase