Skip to main content

Apply a simple ice-volume correction to marine-isotope proxy records in Python

Project description

erebusfall

Travis-CI Build Status

Apply a simple ice-volume correction to marine-isotope δ18O and δD proxy records, in Python.

The correction uses the LR04 benthic stack from Lisiecki and Raymo, 2005. The stack is scaled so that the LGM-to-present change is assumed to be 1.0 ‰ in accordance with the pore-water estimate of Schrag et al. 1996. The package is adapted from the ice-volume correction in Tierney et al. 2017.

Example

Start by importing erebusfall, numpy:

import erebusfall as ef
import numpy as np

...and creating a hypothetical proxy time series...

age_ka = np.arange(0, 20, 1)
proxy = np.random.normal(loc=-2.0, size=len(age_ka))

Now we can plug this into ef.icevol_correction() with a few key options:

proxy_adjusted = ef.icevol_correction(age_ka, proxy, 
                                      proxytype='d18o', 
                                      timeunit='ka')

We first plug in the proxy age and proxy values. The proxytype='d18o' indicates that we're dealing with δ18O. We can set proxytype='dd' for a δD record. The timeunit argument indicates that age_ka is in thousands of years before present. There are also options for for "years BP" and "million years BP". The output from the function, proxy_adjusted, is the corrected isotope proxy as a numpy array.

See help(ef.icevol_correction) for more documentation.

Installation

You can install the package from PyPI with

pip install erebusfall

If you want to use conda:

conda install erebusfall -c sbmalev

Development and Support

Source code is hosted online under an Open Source license. Please feel free to file any bugs and issues you find.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

erebusfall-0.0.3.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

erebusfall-0.0.3-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file erebusfall-0.0.3.tar.gz.

File metadata

  • Download URL: erebusfall-0.0.3.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

File hashes

Hashes for erebusfall-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ed310cbd81f65ffb6a73d927703b317cd170983e94da82cb618f8c1c5b761468
MD5 7a86b325d6152bd9bd0131e6e9716019
BLAKE2b-256 8f2819c0c3ce9296435d3217a0aa254d50cb4289ed9612940e0757b1831e90bf

See more details on using hashes here.

File details

Details for the file erebusfall-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: erebusfall-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

File hashes

Hashes for erebusfall-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49d32f001d2a07fdd4a03f1271fe984895d8cf7ab5175a382640103a622f4a62
MD5 c1137f5d11ccd994dd6238f85507fa7d
BLAKE2b-256 5ddc9134457954388205b1f787b00c0b33724a156f92ce4de6dbb90ce9ce0ab5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page