Learn R Programming

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

seacarb

Carbonate chemistry with R

Copy Link

Version

Install

install.packages('seacarb')

Monthly Downloads

1,050

Version

3.0.14

License

GPL (>= 2)

Maintainer

Jean-Pierre Gattuso

Last Published

April 9th, 2016

Functions in seacarb (3.0.14)

K1p

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

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

Equilibrium constant of hydrogen fluoride (mol/kg)
speciation

ionic forms as a function of pH
Ks

Stability constant of hydrogen sulfate (mol/kg)
Kw

Ion product of water (mol2/kg2)
Kn

Dissociation constant of ammonium (mol/kg)
vapress

Computes vapor pressure of seawater
Kspc

Solubility product of calcite (mol/kg)
buffer

Buffer parameters of the seawater carbonate system
theta

Potential temperature of seawater
d2p

Converts depth in meters to pressure in dbar
seacarb_test_P0

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

Total boron concentration (mol/kg)
carbb

Parameters of the seawater carbonate system
pTA

pTA
tris

pH value of the TRIS buffer
p2d

Converts pressure in dbar to depth in meters
kfg

variable for internal use
Khs

Dissociation constant of hydrogen sulfide (mol/kg)
Pcorrect

Pressure correction of equilibrium constants
Om

Carbonate saturation state for magnesian calcites
K1

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

Parameters of the seawater carbonate system
x2pCO2

Converts mole fraction to partial pressure of CO2
ppH

ppH
seacarb_test_P300

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

Potentiometric pH
K0

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

Converts the CO2 fugacity to CO2 partial pressure
Ksi

Dissociation constant of Si(OH)4
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
bjerrum

Bjerrum plot
p2fCO2

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

Coefficients used for pressure-correcting the equilibrium constants
K2p

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

Calculates total alkalinity from potentiometric titration data
K2

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

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

Density of seawater (kg/m3)
amp

pH value of the AMP buffer
oa

Perturbation of the seawater carbonate system
psi

Molar ratio of CO2 released vs CaCO3 precipitated
pmix

pmix
alkalinity

Example data file for function at
pCa

pCa
Kb

Dissociation constant of boric acid (mol/kg)
pHinsi

pH at in situ temperature
pgas

pgas
Kspa

Solubility product of aragonite (mol/kg)
p2xCO2

Converts partial pressure of CO2 to mole fraction of CO2