Kgen
Kgen provides multi-language tools for calculating stoichiometric equilibirium constants (Ks) for seawater at given temperature, salinity, pressure, [Mg] and [Ca].
Use Kgen
Kgen is available for use in Matlab, Python and R.
Kgen in Matlab Kgen in Python Kgen in R
Cite Kgen
If you use Kgen, please cite:
Whiteford, R., Branson, O., and Mayk, D. Using Kgen to Generate Cross-Verified Apparent Equilibrium Constants (K*’s) for Palaeoseawater Carbonate Chemistry. G3 doi:10.1029/2023GC011417
License
Kgen is open-source and distributed under an MIT license. You can find the source code on GitHub.
Contributing
We welcome contributions to Kgen. Please communicate your intentions by first submitting an issue on the Kgen GitHub repo, so we can discuss how best to integrate your contributions.
Kgen was built by Oscar Branson, Dennis Mayk, and Ross Whiteford.