Tools for calculating pH and Alkalinity from spectrophotometric data.
Project description
carbspec : pH and Alkalinity Determination by Spectral Fitting
Submitted Manuscript
High-Precision characterisation of indicator dyes by Spectral Fitting: Application to Swawater pH and Alkalinity measurements. Branson, O. & Ellwood, M. L&O Methods
Electronic supplements are available in the SI Folder.
Installation
pip install carbspec
Example Usage
from carbspec.io import load_spectrum # for reading files
from carbspec import spectro # for doing the work
spec = load_spectrum('./SI/data/pH/CRM1_DICKSON_D10_CRM_100211_03_12_2019.dat') # this data file is in the 'SI' folder of the reposiitory.
# NB Yo don't have to use 'load_spectrum' - the following function just requires two arrays containing wavelength and absorption.
spectro.pH_from_spectrum(s['wavelength'], s['Abs'])
> 3.570124144350996+/-0.006193756635537494
Further examples of pH and TA calculation on batches of files may be found in the Figures Supplement to the manusript.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file carbspec-0.0.2.tar.gz.
File metadata
- Download URL: carbspec-0.0.2.tar.gz
- Upload date:
- Size: 13.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f2476f1fe3e0060e9788daf6808e73defd6148d77c8e9a451e15bbba5b1c802
|
|
| MD5 |
95af564239f445983735d0d116733697
|
|
| BLAKE2b-256 |
8577fd70846c4e5e843cc7fd02be3c0c5ae1bd784f3bebd4de80751cbf70aadf
|
File details
Details for the file carbspec-0.0.2-py3-none-any.whl.
File metadata
- Download URL: carbspec-0.0.2-py3-none-any.whl
- Upload date:
- Size: 221.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8788d5a994ab95c318a5070d27c1bce9b0ac8fbe4e6219314eb76853927ccfe8
|
|
| MD5 |
c8c871c2bbf1c255759ac7c33a2da542
|
|
| BLAKE2b-256 |
cb503330d2731c58deecd1b32b8ce5d588fc5f552f63af57eeedaeca21f6c822
|