earthkit.meteo.thermo.array.saturation_mixing_ratio =================================================== .. py:function:: earthkit.meteo.thermo.array.saturation_mixing_ratio(t, p, phase='mixed') Compute the saturation mixing ratio from temperature with respect to a phase. :param t: Temperature (K) :type t: :class:`array-like` :param p: Pressure (Pa) :type p: :class:`array-like` :param phase: Define the phase with respect to the :func:`saturation_vapour_pressure` is computed. It is either “water”, “ice” or “mixed”. :type phase: :class:`str` :returns: Saturation mixing ratio (kg/kg) :rtype: :class:`array-like` Equivalent to the following code: .. code-block:: python e = saturation_vapour_pressure(t, phase=phase) return mixing_ratio_from_vapour_pressure(e, p)