calculate_dic: Calculate dissolved inorganic carbon

View source: R/calculate_dic.R

calculate_dicR Documentation

Calculate dissolved inorganic carbon

Description

Calculate dissolved inorganic carbon

Usage

calculate_dic(ph, alkalinity, temperature = 25, method = "a")

Arguments

ph

A vector of pH values.

alkalinity

A vector of alkalinities, in mg CaCO3/L

temperature

Water tempterature in degress C

method

Either "a" or "b". Method "a", the default, is described in https://doi.org/10.1002/j.1551-8833.1980.tb04616.x, and it applies at 25 degrees C only. Method "b" uses PHREEQC and incorporates temperature as a variable, but it may not converge.

Value

A numeric vector of dissolved inorganic carbon concentrations, in mg C/L.

Examples

calculate_dic(7.5, 20)

bentrueman/pbcusol documentation built on Oct. 25, 2024, 1:06 p.m.