K_CO2: K\_CO2

Description Usage Arguments Value Author(s) References Examples

View source: R/aquaenv_private_Kfunctions.R

Description

PUBLIC function: calculates the dissociation constant of CO2

Usage

1
K_CO2(S, t, p=0, SumH2SO4=NULL, SumHF=NULL, k1k2="lueker", khf="dickson", khso4="dickson")

Arguments

S

salinity in practical salinity units (i.e. no unit)

t

temperature in degrees centigrade

p

gauge pressure (total pressure minus atmospheric pressure) in bars

SumH2SO4

total sulfate concentration in mol/kg-solution (calculated from S if not supplied)

SumHF

total fluoride concentration in mol/kg-solution (calculated from S if not supplied)

k1k2

"lueker", "roy", or "millero": specifies the S, t, dependency to be used. Default is "lueker". (see section below for references)

khf

S, t relation for K\_HF needed for scale conversion: either "dickson" (default, Dickson1979a) or "perez" (Perez1987a)

khso4

S, t relation for K\_HSO4 needed for scale conversion: either "dickson" (default, Dickson1990) or "khoo" (Khoo1977)

Value

the dissociation constant of CO2 in mol/kg-solution on the free proton pH scale

Author(s)

Andreas F. Hofmann. Maintained by Karline Soetaert (Karline.Soetaert@nioz.nl).

References

k1k2 = "roy": Roy1993b, DOE1994, Millero1995, Zeebe2001; k1k2 = "lueker": Lueker2000; k1k2 = "millero": Millero2006

Examples

1
2
3
4
K_CO2(35, 15)
K_CO2(35, 15, 10)
K_CO2(S=35, t=15, p=10, SumH2SO4=0.03)
plot(K_CO2(35, 1:25), xlab="temperature / degC")

Example output

[1] 9.630811e-07
attr(,"unit")
[1] "mol/kg-soln"
attr(,"pH scale")
[1] "free"
[1] 9.737935e-07
attr(,"unit")
[1] "mol/kg-soln"
attr(,"pH scale")
[1] "free"
[1] 9.641359e-07
attr(,"unit")
[1] "mol/kg-soln"
attr(,"pH scale")
[1] "free"

AquaEnv documentation built on May 1, 2019, 9:09 p.m.

Related to K_CO2 in AquaEnv...