openaq.utils.
mass_to_mix
(value, param, unit='ppb', **kwargs)[source]¶Convert units from ug/m3 to ppb or ppm. The conversion assumes an ambient pressure of 1 atmosphere and ambient temperature of 25 degC.
Parameters: | |
---|---|
Returns: | value |
Example: |
>>> import openaq
>>> conc_ugm3 = 100
>>> conc_ppb = openaq.utils.mass_to_mix(conc_ugm3, param='co', unit='ppb')
>>> conc_ppb
114.5