GithubHelp home page GithubHelp logo

brews / erebusfall Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 62 KB

Ice-volume correction to marine-isotope proxy records in Python.

License: GNU General Public License v3.0

Python 100.00%
d18o ice-volume-correction paleoclimate python deuterium marine-isotope paleoceanography

erebusfall's Introduction

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.

erebusfall's People

Contributors

brews avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

erebusfall's Issues

Need example data

We need at least one example dataset to use as a compelling example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.