vmr2specific_humidity
- typhon.physics.vmr2specific_humidity(x)[source]
Convert volume mixing ratio to specific humidity.
\[q = \frac{x}{(1 - x) \frac{M_d}{M_w} + x}\]- Parameters:
x (float or ndarray) – Volume mixing ratio.
- Returns:
Specific humidity.
- Return type:
float or ndarray
Examples
>>> vmr2specific_humidity(0.04) 0.025261087474946833