Learn R Programming

seacarb (version 2.3.1)

Khs: Dissociation constant of hydrogen sulfide (mol/kg)

Description

Dissociation constant of hydrogen sulfide (mol/kg)

Usage

Khs(S=35, T=25, P=0, pHscale="T")

Arguments

S
Salinity, default is 35
T
Temperature in degrees Celsius, default is 25oC
P
Hydrostatic pressure in bar (surface = 0), default is 0
pHscale
choice of pH scale: "T" for using the total scale, "F" for using the free scale and "SWS" for using the seawater scale, default is total scale

Value

  • KhsDissociation constant of hydrogen sulfide

encoding

latin1

Details

Note that the arguments can be given as a unique number or as vectors. If the lengths of the vectors are different, the longer vector is retained and only the first value of the other vectors is used. It can therefore be critical to use vectors of the same length. The pressure correction was applied on the seawater scale. Hence, values were first transformed from the total scale to the seawater scale, the pressure correction applied as described by Millero (1995), and the value was transformed back to the required scale (T, F or SWS).

References

Millero F. J., 1995. Thermodynamics of the carbon dioxide system in the oceans. Geochimica Cosmochimica Acta 59: 661-677.

Examples

Run this code
Khs(S=35,T=25,P=0, pHscale="T")
  plot(Tseq <- seq(0,30,by=0.1), Khs(T=Tseq),xlab="Temperature,dgC",ylab="Khs")

Run the code above in your browser using DataLab