earthkit.meteo.thermo.array.specific_humidity_from_relative_humidity ==================================================================== .. py:function:: earthkit.meteo.thermo.array.specific_humidity_from_relative_humidity(t, r, p) Compute the specific humidity from relative_humidity. :param t: Temperature (K) :type t: :class:`array-like` :param r: Relative humidity(%) :type r: :class:`array-like` :param p: Pressure (Pa) :type p: :class:`array-like` :returns: Specific humidity (kg/kg) units :rtype: :class:`array-like` The computation starts with determining the the vapour pressure: .. math:: e(q, p) = r\; \frac{e_{msat}(t)}{100} where: * :math:`e` is the vapour pressure (see :func:`vapour_pressure`) * :math:`e_{msat}` is the :func:`saturation_vapour_pressure` based on the "mixed" phase * :math:`q` is the specific humidity Then :math:`q` is computed from :math:`e` using :func:`specific_humidity_from_vapour_pressure`.