kconv(S=35,T=25, P=0, kf, Ks, Kff)
Note that kconv may be called in many functions (i.e. K1, K2, K1P, K2P, K3P, Kw, Ksi, etc...) without user controls it. To force a particular formulation for Kf, it is recommended to call kconv() first then pass the resulting conversion factors to these functions.
pHconv
.##To convert dissociation constants from the total scale to the free scale
## (at salinity=35, temperature=25oC and atmospheric pressure):
kconv(35,25,0)
conv <- kconv()
c(K1_total=K1(),K1_SWS=K1()*conv$ktotal2SWS,K1_free=K1()*conv$ktotal2free)
Run the code above in your browser using DataLab