Dissociation constant of hydrogen sulfide (mol/kg)
Khs(S=35, T=25, P=0, pHscale="T", kSWS2scale="x", ktotal2SWS_P0="x", 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
Optional conversion factor from the seawater pH scale to the chosen pH scale. Supply the value already computed for the other constants in the same calculation (as calculate_carb does for Kw, Ksi, K1p, K2p and K3p), so that every constant is placed on the same pH scale by the same route. If omitted, the factor is recomputed here with kconv using its default kf="x"; a caller who requested kf="dg" would then silently receive a constant built on a different Kf, an inconsistency of up to 0.9 percent.
Optional conversion factor from the total pH scale to the seawater pH scale at atmospheric pressure. Khs is native to the total pH scale, so like Kb it requires both conversion factors. Same rationale as kSWS2scale.
"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