Dissociation constant of hydrogen sulfide (mol/kg)
Khs(S=35, T=25, P=0, pHscale="T", warn="y")
Dissociation constant of hydrogen sulfide
Salinity, default is 35
Temperature in degrees Celsius, default is 25oC
Hydrostatic pressure in bar (surface = 0), default is 0
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
"y" to show warnings when T or S go beyond the valid range for Khs; "n" to supress warnings. The default is "y".
Karline Soetaert K.Soetaert@nioo.knaw.nl and Heloise Lavigne
This formulation is only valid for specific ranges of temperature and salinity:
S ranging between 0 and 45 and T ranging between 0 and 45oC.
The pressure correction is applied on the seawater scale. Hence, the values are first transformed from the total scale to the seawater scale, the pressure correction applied as described by Millero (1995), and the value is transformed back to the required scale (T, F or SWS).
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.
Millero F. J., 1995 Thermodynamics of the carbon dioxide system in the oceans. Geochimica Cosmochimica Acta 59: 661-677.
Khs(S=35,T=25,P=0, pHscale="T")
Run the code above in your browser using DataLab