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