{ "info": { "author": "S. Brewster Malevich", "author_email": "malevich@email.arizona.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering" ], "description": "# bayfox\n\n[![Travis-CI Build Status](https://travis-ci.org/brews/bayfox.svg?branch=master)](https://travis-ci.org/brews/bayfox)\n\nExperimental Bayesian planktic foraminifera calibration, for Python.\n\n**Please note that this package is currently under development. It will eat your pet hamster.**\n\n## Quick example\n\nFirst, load key packages and an example dataset:\n\n import numpy as np\n import bayfox as bfox\n\n example_file = bfox.get_example_data('VM21-30.csv')\n d = np.genfromtxt(example_file, delimiter=',', names=True, missing_values='NA')\n\nThis data (from [Koutavas and Joanides 2012](https://doi.org/10.1029/2012PA002378))\nhas three columns giving, down-core depth, sediment age (calendar years BP) and \u03b418O for *G. ruber* (white) (\u2030; VPDB). \nThe core site is in the Eastern Equatorial Pacific.\n\nWe can make a prediction of sea-surface temperature (SST) with `predict_seatemp()`:\n\n prediction = bfox.predict_seatemp(d['d18O_ruber'], d18osw=0.239, prior_mean=24.9, prior_std=7.81)\n\nThe values we're using for priors are roughly based on the range of SSTs we've seen for *G. ruber* sediment \ncores in the modern period, though the prior standard deviation is twice the spread in the modern \nrecord. Let's use \u03b418O of modern seawater (\u2030; VSMOW) near the site ([LeGrande and Schmidt 2006](https://doi.org/10.1029/2006GL026011)). We'll assume it's constant -- for simplicity. \nWe're also not correcting these proxies for changes in global ice volume, so these numbers will be off. Ideally we'd make \nthis correction to \u03b418Oc series before the prediction. See the \n[`erebusfall` package](https://github.com/brews/erebusfall) for simple ice-volume correction in Python.\n\nTo see actual numbers from the prediction, directly parse `prediction.ensemble` or use `prediction.percentile()` to get \nthe 5%, 50% and 95% percentiles. You can also plot your prediction with `bfox.predictplot(prediction)`.\n\nThis uses the pooled Bayesian calibration model, which is calibrated on annual SSTs. We can consider foram-specific \nvariability with:\n\n prediction = bfox.predict_seatemp(d['d18O_ruber'], d18osw=0.239, prior_mean=24.9, prior_std=7.81, \n foram='G. ruber')\n\nwhich uses our hierarchical model calibrated on annual SSTs. We can also estimate foram-specific seasonal effects with:\n\n prediction = bfox.predict_seatemp(d['d18O_ruber'], d18osw=0.239, prior_mean=24.9, prior_std=7.81, \n foram='G. ruber', seasonal_seatemp=True)\n\nThis uses our hierarchical model calibrated on seasonal SSTs. Be sure to specify the foraminifera if you use this option.\n\nYou can also predict \u03b418O for planktic calcite using similar options, using the `predict_d18oc()` function.\n\n## Installation\n\nTo install **bayfox** with *pip*, run:\n\n pip install bayfox\n\n\nTo install **bayfox** with *conda*, run:\n\n conda install -c sbmalev bayfox\n\n**bayfox** is not compatible with Python 2.\n\n## Support and development\n\n- Please feel free to report bugs and issues or view the source code on GitHub (https://github.com/brews/bayfox).\n\n\n## License\n\n**bayfox** is available under the Open Source GPLv3 (https://www.gnu.org/licenses).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brews/bayfox", "keywords": "marine paleoclimate paleoceanography d18o \u03b418o", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "bayfox", "package_url": "https://pypi.org/project/bayfox/", "platform": "", "project_url": "https://pypi.org/project/bayfox/", "project_urls": { "Homepage": "https://github.com/brews/bayfox" }, "release_url": "https://pypi.org/project/bayfox/0.0.1a3/", "requires_dist": [ "numpy", "matplotlib", "attrs" ], "requires_python": "", "summary": "Experimental Bayesian planktic foraminifera calibration, for Python.", "version": "0.0.1a3" }, "last_serial": 4494339, "releases": { "0.0.1a1": [ { "comment_text": "", "digests": { "md5": "d928582684504aab6037b777561f9f06", "sha256": "15827e18c3fe649d5d512018c72f00c2c2d7cd13de3c1835eb5670730bcb09b8" }, "downloads": -1, "filename": "bayfox-0.0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "d928582684504aab6037b777561f9f06", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4560304, "upload_time": "2018-07-20T18:46:11", "url": "https://files.pythonhosted.org/packages/6a/e1/c3836a9133c7460dbd5337279089a70c7e31bc1a9a1c290ddbbfd910a723/bayfox-0.0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48acbbc76d222c194f33fdb6968141d2", "sha256": "a368548c3227d9a95158b417dfb3ac36e4de29ff9f5b0e7d7653750ce1b85264" }, "downloads": -1, "filename": "bayfox-0.0.1a1.tar.gz", "has_sig": false, "md5_digest": "48acbbc76d222c194f33fdb6968141d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4541526, "upload_time": "2018-07-20T18:46:14", "url": "https://files.pythonhosted.org/packages/6f/5e/655b01742e5b9bbf41a8f16ff5aecb3cd173cf4283c7d9cc551d25eb0a4a/bayfox-0.0.1a1.tar.gz" } ], "0.0.1a2": [ { "comment_text": "", "digests": { "md5": "7d28d269c13cbf40a813dffa202f89be", "sha256": "a372f8e3de5b35bf5403c61a775d3065bb47880dd1c9f9abf24c0974c7a11e07" }, "downloads": -1, "filename": "bayfox-0.0.1a2-py3-none-any.whl", "has_sig": false, "md5_digest": "7d28d269c13cbf40a813dffa202f89be", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4556038, "upload_time": "2018-10-10T13:36:18", "url": "https://files.pythonhosted.org/packages/f4/06/1d293e3ecbc6a95566ab7171d087da46d85514cbc955a13bebe40baa5de0/bayfox-0.0.1a2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba0dc44fca30790de3073ca0786b70aa", "sha256": "1cd57abfadd438e8c567fcca75863898be12df8c794eed0816167c4d2a777167" }, "downloads": -1, "filename": "bayfox-0.0.1a2.tar.gz", "has_sig": false, "md5_digest": "ba0dc44fca30790de3073ca0786b70aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4539916, "upload_time": "2018-10-10T13:36:28", "url": "https://files.pythonhosted.org/packages/f8/db/bf7286cef3bac7dbf13aa6a8723c538d41f3db677dc66ff3928812297496/bayfox-0.0.1a2.tar.gz" } ], "0.0.1a3": [ { "comment_text": "", "digests": { "md5": "fe6733bebc01146988d73281266a4e51", "sha256": "0179e4b46eca8ac81193e9f4a2a8043cc8716360c8069c18b8a1398422d5c80a" }, "downloads": -1, "filename": "bayfox-0.0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "fe6733bebc01146988d73281266a4e51", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4005577, "upload_time": "2018-11-16T16:49:41", "url": "https://files.pythonhosted.org/packages/9c/ec/63a661dd13b513938fc7e1e84705ca56a459753e9af62f0aa3c8972ed6b2/bayfox-0.0.1a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73955761c5379600a0e7059af395a01f", "sha256": "332ab85251f18884617641e58dbb743dd4d5fd32373aef3d7dfd998724e4650c" }, "downloads": -1, "filename": "bayfox-0.0.1a3.tar.gz", "has_sig": false, "md5_digest": "73955761c5379600a0e7059af395a01f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3990239, "upload_time": "2018-11-16T16:49:45", "url": "https://files.pythonhosted.org/packages/4f/81/42124a330a1d1726db00aa05988d2d61cc3f1d242a01e853b12d5f54bc51/bayfox-0.0.1a3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fe6733bebc01146988d73281266a4e51", "sha256": "0179e4b46eca8ac81193e9f4a2a8043cc8716360c8069c18b8a1398422d5c80a" }, "downloads": -1, "filename": "bayfox-0.0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "fe6733bebc01146988d73281266a4e51", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4005577, "upload_time": "2018-11-16T16:49:41", "url": "https://files.pythonhosted.org/packages/9c/ec/63a661dd13b513938fc7e1e84705ca56a459753e9af62f0aa3c8972ed6b2/bayfox-0.0.1a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73955761c5379600a0e7059af395a01f", "sha256": "332ab85251f18884617641e58dbb743dd4d5fd32373aef3d7dfd998724e4650c" }, "downloads": -1, "filename": "bayfox-0.0.1a3.tar.gz", "has_sig": false, "md5_digest": "73955761c5379600a0e7059af395a01f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3990239, "upload_time": "2018-11-16T16:49:45", "url": "https://files.pythonhosted.org/packages/4f/81/42124a330a1d1726db00aa05988d2d61cc3f1d242a01e853b12d5f54bc51/bayfox-0.0.1a3.tar.gz" } ] }