Learn R Programming

⚠️There's a newer version (3.3.3) of this package.Take me there.

seacarb (version 2.4.4)

seawater carbonate chemistry with R

Description

Calculates parameters of the seawater carbonate system. Code and/or corrections were contributed by Andreas Andersson, Jean-Marie Epitalon, Bernard Gentili, Andreas Hofmann, Jim Orr, Aurelien Proye and Karline Soetaert

Copy Link

Version

Install

install.packages('seacarb')

Monthly Downloads

1,179

Version

2.4.4

License

GPL (>= 2)

Maintainer

Jean-Pierre Gattuso

Last Published

June 29th, 2012

Functions in seacarb (2.4.4)

alkalinity

Example data file for function at
K3p

Third dissociation constant of phosphoric acid (mol/kg)
K2p

Second dissociation constant of phosphoric acid (mol/kg)
Ksi

Dissociation constant of Si(OH)4
Kf

Equilibrium constant of hydrogen fluoride (mol/kg)
d2p

Converts depth in meters to pressure in dbar
Om

Carbonate saturation state for magnesian calcites
Kn

Dissociation constant of ammonium (mol/kg)
amp

pH value of the AMP buffer
pTA

pTA
Pcoeffs

Coefficients used for pressure-correcting the equilibrium constants
pmix

pmix
buffer

Buffer parameters of the seawater carbonate system
seacarb_test_P300

Test data file (at P=300) to test the use of the carb function
Kw

Ion product of water (mol2/kg2)
rho

Density of seawater (kg/m3)
K2

Second dissociation constant of carbonic acid (mol/kg)
kconv

Conversion factors to change the pH scale of dissociation constants
pHinsi

pH at in situ temperature
bor

Total boron concentration (mol/kg)
K1p

First dissociation constant of phosphoric acid (mol/kg)
pHconv

Conversion of pH
ppH

ppH
bjerrum

Bjerrum plot
oa

Perturbation of the seawater carbonate system
seacarb_test

Test data file to test the use of the carb function
pCa

pCa
Ks

Stability constant of hydrogen sulfate (mol/kg)
carb

Parameters of the seawater carbonate system
buffesm

Buffer capacities of the seawater carbonate system as defined by Egleston et al. (2010)
f2pCO2

Converts the CO2 fugacity to CO2 partial pressure
p2fCO2

Converts pCO2 (partial pressure in CO2) into fCO2 (fugacity of CO2)
Kspc

Solubility product of calcite (mol/kg)
p2d

Converts pressure in dbar to depth in meters
Kh

Henry's constant mol/(kg/atm)
psi

Molar ratio of CO2 released vs CaCO3 precipitated
seacarb_test_P0

Test data file (at P=0) to test the use of the carb function
carbm

Parameters of the seawater carbonate system, in case of artificial addition of boron
pHslope

Slope of the calibration curve of a pH electrode
Kb

Dissociation constant of boric acid (mol/kg)
Pcorrect

Pressure correction of equilibrium constants
Khs

Dissociation constant of hydrogen sulfide (mol/kg)
tris

pH value of the TRIS buffer
Kspa

Solubility product of aragonite (mol/kg)
pH

Potentiometric pH
K1

First dissociation constant of carbonic acid (mol/kg)
pgas

pgas
at

Calculates total alkalinity from potentiometric titration data
speciation

ionic forms as a function of pH