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