earthkit.meteo.thermo.array.mixing_ratio_from_specific_humidity¶
- earthkit.meteo.thermo.array.mixing_ratio_from_specific_humidity(q)¶
Compute the mixing ratio from specific humidity.
- Parameters:
q (
numberorarray-like) – Specific humidity (kg/kg)- Returns:
Mixing ratio (kg/kg)
- Return type:
numberorarray-like
The result is the mixing ratio in kg/kg units. The computation is based on the following definition [Wallace2006]:
\[w = \frac {q}{1-q}\]