earthkit.meteo.thermo.array.specific_humidity_from_mixing_ratio =============================================================== .. py:function:: earthkit.meteo.thermo.array.specific_humidity_from_mixing_ratio(w) Compute the specific humidity from mixing ratio. :param w: Mixing ratio (kg/kg) :type w: :class:`number` or :class:`array-like` :returns: Specific humidity (kg/kg) :rtype: :class:`number` or :class:`array-like` The result is the specific humidity in kg/kg units. The computation is based on the following definition [Wallace2006]_: .. math:: q = \frac {w}{1+w}