vmr2mixing_ratio

typhon.physics.vmr2mixing_ratio(x)[source]

Convert volume mixing ratio to mass mixing ratio.

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

x (float or ndarray) – Volume mixing ratio.

Returns:

Mass mixing ratio.

Return type:

float or ndarray

Examples

>>> vmr2mixing_ratio(0.04)
0.025915747437955664