calculate_DO_percent_saturation: Calculates dissolved oxygen percent saturation (%)

View source: R/calculate_DO_percent_saturation.R

calculate_DO_percent_saturationR Documentation

Calculates dissolved oxygen percent saturation (%)

Description

Converts dissolved oxygen from concentration (mg/L) to percent saturation based on temperature, salinity, and barometric pressure.

Usage

calculate_DO_percent_saturation(
  dat.wide,
  Sal = NULL,
  P_atm = NULL,
  method = "garcia-gordon",
  return.factors = FALSE
)

Arguments

dat.wide

Dataframe with columns Temperature (degrees Celsius), and DO_concentration (mg/L). Other columns will be ignored and returned.

Sal

A single value of salinity (psu). This value must be specified if there is no Salinity column in dat.wide. Default is Sal = NULL. Note: if Sal is specified when there is a Salinity column in dat.wide, the function will stop with an error.

P_atm

A single value of barometric pressure (atm). This value should be specified if there is no Pressure column in dat.wide. Default is P_atm = NULL. Note: if P_atm is specified when there is a Pressure column in dat.wide, function will stop with an error.

method

Equation to use to calculate dissolved oxygen solubility. Options are method = "garcia-gordon" (the default) and method = "benson-krause".

return.factors

Logical parameter. If TRUE the function returns dat.wide with additional columns for the parameters used to calculate C_p (DO solubility), and DO_percent_sat.

If FALSE (the default), the function returns dat.wide with additional column DO_percent_sat instead of DO_concentration.

Details

DO percent saturation is calculated as:

DO_{\% Saturation} = 100 * DO_{mg/L} / C_{p}

Where DO_{mg/L} is the concentration of dissolved oxygen in mg/L (corrected for salinity and/or pressure), and C_{p} is the solubility of oxygen at the observed temperature, pressure, and salinity.

See ?calculate_cp for information on how C_{p} is calculated.

Author(s)

Danielle Dempsey, Nicole Torrie

See Also

Other Dissolved Oxygen: DO_pressure_correction(), DO_salinity_correction(), calculate_DO_concentration(), calculate_cp()


Centre-for-Marine-Applied-Research/strings documentation built on Aug. 21, 2023, 8 a.m.