Giter Site home page Giter Site logo

brews / carbonferret Goto Github PK

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

A Python package to quickly fetch carbon reservoir records at the Marine Reservoir Correction database (http://calib.org/marine/).

License: GNU General Public License v3.0

Python 14.58% HTML 85.42%
carbon paleoclimate python sediment marine chemistry paleoceanography

carbonferret's Introduction

carbonferret

Travis-CI Build Status

A Python package to quickly fetch carbon reservoir records at the Marine Reservoir Correction database (http://calib.org/marine/).

Example

The carbonferret package is simple, but powerful. For instance, let's say we want to find two sediment records nearest 0° latitude, 0° longitude. We can open a python session and run:

import carbonferret as cf

results = cf.find_near(lat=0, lon=0, n=2)

The variable results is a pandas DataFrame with information on sample location and reservoir values, among other variables provided by the Marine Reservoir Correction database.

We can take advantage of this. For example, we could find the average ΔR of these sites.

results['DeltaR'].mean()

Of course there are several other variables that we can look at, such as site references or site location.

This can be useful if you want to look up a few quick numbers in the lab, or if you're writing a script to analyze hundreds of marine sediment cores.

Installation

You can install the package from PyPI with

pip install carbonferret

Development and Support

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

carbonferret's People

Contributors

brews avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

carbonferret's Issues

Need to update travis-ci script

Travis-ci is failing on the tests using python nightly builds. I think we can just remove those test cases. They're not really needed.

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.