calculate_DO_concentration: Calculates dissolved oxygen concentration (mg/L)

View source: R/calculate_DO_concentration.R

calculate_DO_concentrationR Documentation

Calculates dissolved oxygen concentration (mg/L)

Description

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

Usage

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

Arguments

dat.wide

Dataframe with columns Temperature (degrees Celsius), and DO_percent_sat (% saturation). 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_concentraion (in mg/L).

If FALSE (the default), the function returns dat.wide with additional column DO_concentraion (in mg/L) instead of DO_percent_sat.

Details

DO concentration is calculated as:

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

Where DO_{\% Saturation} is the percent saturation of dissolved oxygen, 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_percent_saturation(), calculate_cp()


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