Calkulate¶
Calkulate is a Python package for finding total alkalinity [D91] from titration data using PyCO2SYS [HLSP22, HSS22].
Installation¶
pip install calkulate
Basic use¶
If the data for each individual titration is in its own text file and you have a spreadsheet containing the metadata for each titration on separate rows — all formatted as expected — then all you need to do with Calkulate is:
import calkulate as calk
data = calk.read_csv("path/to/metadata_file.csv").calkulate()
data.alkalinity # <== here are your alkalinity results
data
is then a pandas DataFrame based on the metadata file you provided but with some extra columns added such as data.alkalinity
, which contains the fully calibrated total alkalinity for each sample.
Other read-in functions are also available (e.g., for Excel spreadsheets and VINDTA .dbs files).
See Dataset methods for more information on what calkulate
does.
About¶
Calkulate is being developed primarily by Dr Matthew P. Humphreys at the Royal Netherlands Institute for Sea Research (NIOZ, Texel).
Citation¶
If you use Calkulate in your work, please cite it as:
Humphreys, M. P. and Matthews, R. S. (2024). Calkulate: total alkalinity from titration data in Python. Zenodo. doi:10.5281/zenodo.2634304.
Please specify which version you are using. To find this:
import calkulate as calk
calk.hello()
License¶
Calkulate is licensed under the GNU General Public License version 3 (GPLv3).