o2_unit_conv {presens} | R Documentation |
Convert units of dissolved oxygen
Description
Given a measurement of dissolved O2, a list of commonly used units of oxygen partial pressures and concentrations are returned.
Usage
o2_unit_conv(o2 = 100, from = "percent_a.s.", to = "all", salinity = 35,
temp = 25, air_pres = 1.013253)
Arguments
o2 |
a numeric vector of the O2 value(s). Default is 100. |
from |
a string describing the unit used to measure
|
to |
a single string either describing the unit to which the conversion should be conducted (options are the same as in |
salinity |
salinity of water sample (psu). Default is 35 psu. |
temp |
temperature of water sample (°C). Default is 25 °C. |
air_pres |
pressure of air overlying water sample (bar). Default is 1.013253 bar. |
Details
Conversions are based on relationships and values from the package marelac
.
Author(s)
Matthew A. Birk, matthewabirk@gmail.com
Examples
o2_unit_conv(o2 = 50)
o2_unit_conv(o2 = 1:50, from = "umol_per_l", to = "ml_per_l", salinity = 0, temp = 10,
air_pres = 1.2)
o2_unit_conv()[c('mmHg','kPa')]
[Package presens version 2.1.0 Index]