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