mixing_ratio2vmr

typhon.physics.mixing_ratio2vmr(w)[source]

Convert mass mixing ratio to volume mixing ratio.

\[x = \frac{w}{w + \frac{M_w}{M_d}}\]
Parameters:

w (float or ndarray) – Mass mixing ratio.

Returns:

Volume mixing ratio.

Return type:

float or ndarray

Examples

>>> mixing_ratio2vmr(0.02)
0.03115371853180794