carbspec


Namecarbspec JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/oscarbranson/carbspec
SummaryTools for calculating pH and Alkalinity from spectrophotometric data.
upload_time2024-02-28 14:31:21
maintainer
docs_urlNone
authorOscar Branson
requires_python
license'MIT'
keywords science chemistry oceanography carbon
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="right">
  <a href="https://zenodo.org/badge/latestdoi/227447816"><img src="https://zenodo.org/badge/227447816.svg" alt="DOI" height="18"></a>
  <a href="https://badge.fury.io/py/carbspec"><img src="https://badge.fury.io/py/carbspec.svg" alt="PyPI version" height="18"></a>
</div>

# ``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**](SI/).

## Installation

pip install  carbspec

## Example Usage

```python
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](https://nbviewer.jupyter.org/github/oscarbranson/carbspec/blob/master/SI/Figures.ipynb) Supplement to the manusript.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/oscarbranson/carbspec",
    "name": "carbspec",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "science,chemistry,oceanography,carbon",
    "author": "Oscar Branson",
    "author_email": "ob266@cam.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/85/77/fd70846c4e5e843cc7fd02be3c0c5ae1bd784f3bebd4de80751cbf70aadf/carbspec-0.0.2.tar.gz",
    "platform": null,
    "description": "<div align=\"right\">\n  <a href=\"https://zenodo.org/badge/latestdoi/227447816\"><img src=\"https://zenodo.org/badge/227447816.svg\" alt=\"DOI\" height=\"18\"></a>\n  <a href=\"https://badge.fury.io/py/carbspec\"><img src=\"https://badge.fury.io/py/carbspec.svg\" alt=\"PyPI version\" height=\"18\"></a>\n</div>\n\n# ``carbspec`` : pH and Alkalinity Determination by Spectral Fitting\n\n## Submitted Manuscript\n> High-Precision characterisation of indicator dyes by Spectral Fitting: Application to Swawater pH and Alkalinity measurements. Branson, O. & Ellwood, M. *L&O Methods* \n\nElectronic supplements are available in the [**SI Folder**](SI/).\n\n## Installation\n\npip install  carbspec\n\n## Example Usage\n\n```python\nfrom carbspec.io import load_spectrum  # for reading files\nfrom carbspec import spectro  # for doing the work\n\nspec = 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.\n# NB Yo don't have to use 'load_spectrum' - the following function just requires two arrays containing wavelength and absorption.\n\nspectro.pH_from_spectrum(s['wavelength'], s['Abs'])\n\n> 3.570124144350996+/-0.006193756635537494\n```\n\nFurther examples of pH and TA calculation on batches of files may be found in the [Figures](https://nbviewer.jupyter.org/github/oscarbranson/carbspec/blob/master/SI/Figures.ipynb) Supplement to the manusript.\n",
    "bugtrack_url": null,
    "license": "'MIT'",
    "summary": "Tools for calculating pH and Alkalinity from spectrophotometric data.",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/oscarbranson/carbspec"
    },
    "split_keywords": [
        "science",
        "chemistry",
        "oceanography",
        "carbon"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb503330d2731c58deecd1b32b8ce5d588fc5f552f63af57eeedaeca21f6c822",
                "md5": "c8c871c2bbf1c255759ac7c33a2da542",
                "sha256": "8788d5a994ab95c318a5070d27c1bce9b0ac8fbe4e6219314eb76853927ccfe8"
            },
            "downloads": -1,
            "filename": "carbspec-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8c871c2bbf1c255759ac7c33a2da542",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 221057,
            "upload_time": "2024-02-28T14:31:19",
            "upload_time_iso_8601": "2024-02-28T14:31:19.042220Z",
            "url": "https://files.pythonhosted.org/packages/cb/50/3330d2731c58deecd1b32b8ce5d588fc5f552f63af57eeedaeca21f6c822/carbspec-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8577fd70846c4e5e843cc7fd02be3c0c5ae1bd784f3bebd4de80751cbf70aadf",
                "md5": "95af564239f445983735d0d116733697",
                "sha256": "2f2476f1fe3e0060e9788daf6808e73defd6148d77c8e9a451e15bbba5b1c802"
            },
            "downloads": -1,
            "filename": "carbspec-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "95af564239f445983735d0d116733697",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13739833,
            "upload_time": "2024-02-28T14:31:21",
            "upload_time_iso_8601": "2024-02-28T14:31:21.331564Z",
            "url": "https://files.pythonhosted.org/packages/85/77/fd70846c4e5e843cc7fd02be3c0c5ae1bd784f3bebd4de80751cbf70aadf/carbspec-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-28 14:31:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "oscarbranson",
    "github_project": "carbspec",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "carbspec"
}
        
Elapsed time: 3.44915s