conv_o2: Convert between units of oxygen partial pressure and concentration
Description
Unfortunately, a consensus on the best way to express how much oxygen is in water has not been formed to date. Until then, this function converts between all commonly used forms of dissolved O2 measurements.
Usage
conv_o2(
o2 = 100,
from = "percent_a.s.",
to = "all",
temp = 25,
sal = 35,
atm_pres = 1013.25
)
Arguments
o2
a numeric vector of the O2 value(s). Default is 100.
from
a string describing the unit used to measure o2. Default is "percent_a.s." Options are:
percent_a.s. (percent air saturation)
percent_o2
hPa
kPa
torr
mmHg
inHg
mg_per_l
ug_per_l
umol_per_l
mmol_per_l
nmol_per_ml
ml_per_l
mg_per_kg
ug_per_kg
umol_per_kg
mmol_per_kg
ml_per_kg
volumes_percent
to
a single string either describing the unit to which the conversion should be conducted (options are the same as in from), or the string "all" to return all units.
temp
temperature (°C). Default is 25 °C.
sal
salinity (psu). Default is 35 psu.
atm_pres
atmospheric pressure (mbar). Default is 1013.25 mbar.