Learn R Programming

rMR (version 1.1.0)

DO.saturation: Calculate Oxygen Saturation of Water

Description

Calculate the percent saturation of oxygen in water given external temperature, barometric pressure, and recorded DO concentration in mg/L.

Usage

DO.saturation(DO.mgl, temp.C,
elevation.m = NULL, bar.press = NULL,
bar.units = NULL,
salinity, salinity.units)

Arguments

DO.mgl

Recorded DO concentration in mg/L.

temp.C

Temperature in degrees C.

elevation.m

Elevation in meters above sea level. EITHER elevation.m or bar.press must be specified.

bar.press

Barometric pressure in user defined units (bar.units)--defaults to NULL. EITHER elevation.m or bar.press must be specified.

bar.units

Units of barometric pressure, defaults to NULL. must be "atm", "kpa" or "mmHg"

salinity

Salinity, either reported in parts per thousand ("pp.thou") or microsiemens/cm ("us").

salinity.units

Salinity units, must be "pp.thou" or "us"

Value

Returns numeric value of dissolved oxygen saturation.

References

Mechtly, E. A., 1973: The International System of Units, Physical Constants and Conversion Factors. NASA SP-7012, Second Revision, National Aeronautics and Space Administration, Washington, D.C. https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19730018242.pdf.

U.S. Geological Survey (2011). Change to solubility equations for oxygen in water: Office of Water Quality Technical Memorandum 2011.03, accessed July 15, 2011, at http://water.usgs.gov/admin/memo/QW/qw11.03.pdf.

See Also

Eq.Ox.conc, DO.unit.convert,

Examples

Run this code
# NOT RUN {
DO.sat1 <- DO.saturation(DO.mgl = 5.5,
temp.C = 20, elevation.m = 1000)

DO.sat2 <- DO.saturation(DO.mgl = 5.5,
temp.C = 20, bar.press = 674.1, bar.units = "mmHg")

DO.sat1
DO.sat2

# Will ya look at that...
# }

Run the code above in your browser using DataLab