Learn R Programming

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

seacarb (version 2.4.8)

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 and James Rae

Copy Link

Version

Install

install.packages('seacarb')

Monthly Downloads

1,179

Version

2.4.8

License

GPL (>= 2)

Maintainer

Jean-Pierre Gattuso

Last Published

March 8th, 2013

Functions in seacarb (2.4.8)

Kn

Dissociation constant of ammonium (mol/kg)
d2p

Converts depth in meters to pressure in dbar
Pcorrect

Pressure correction of equilibrium constants
oa

Perturbation of the seawater carbonate system
K2

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

Bjerrum plot
carbm

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

pH value of the TRIS buffer
psi

Molar ratio of CO2 released vs CaCO3 precipitated
p2fCO2

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

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

Total boron concentration (mol/kg)
K2p

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

Coefficients used for pressure-correcting the equilibrium constants
carb

Parameters of the seawater carbonate system
pCa

pCa
kfg

variable for internal use
pgas

pgas
Om

Carbonate saturation state for magnesian calcites
pHconv

Conversion of pH
kconv

Conversion factors to change the pH scale of dissociation constants
pHslope

Slope of the calibration curve of a pH electrode
K3p

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

Solubility product of aragonite (mol/kg)
Ks

Stability constant of hydrogen sulfate (mol/kg)
at

Calculates total alkalinity from potentiometric titration data
pmix

pmix
pH

Potentiometric pH
Kh

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

Solubility product of calcite (mol/kg)
buffesm

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

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

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

Ion product of water (mol2/kg2)
Kb

Dissociation constant of boric acid (mol/kg)
f2pCO2

Converts the CO2 fugacity to CO2 partial pressure
p2d

Converts pressure in dbar to depth in meters
Kf

Equilibrium constant of hydrogen fluoride (mol/kg)
pHinsi

pH at in situ temperature
amp

pH value of the AMP buffer
speciation

ionic forms as a function of pH
pTA

pTA
ppH

ppH
rho

Density of seawater (kg/m3)
Khs

Dissociation constant of hydrogen sulfide (mol/kg)
alkalinity

Example data file for function at
buffer

Buffer parameters of the seawater carbonate system
Ksi

Dissociation constant of Si(OH)4
seacarb_test_P300

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