Giter Club home page Giter Club logo

lakeocmixing's Introduction

LakeOCMixing

DOI

Isotopic Bayesian mixing model for organic carbon in lake sediments. Case study: Lake Constance Obersee.

Sources of organic carbon (OC) in lake sediments:

  • Autochthonous OC: produced through lake primary productivity
  • Petrogenic OC: bedrock-derived OC
  • Pedogenic OC: soil-derived OC

Observational data in sediment core:

  • Δ14C: radiocarbon signature of sediment OC
  • δ13C: stable isotope signature of sediment OC
  • TOC/TN: mass ratio of total organic carbon to total nitrogen
  • ROC/TOC: proportion of residual oxidizable carbon in sediment OC

The mixing model results for a single core are then extrapolated over the entire Lake Constance Obersee using ordinary Kriging, with depth and distance from the Rhine inflow as external drift parameters.

Associated manuscript: Mittelbach et al. (in prep.). "Pre-aged organic matter dominates modern organic carbon burial in a major perialpine lake system". Limnology and Oceanography.

Contents

  • mcmc.py: Calibrate mixing model on a sediment core with MCMC using the pymc package.
  • Kriging.ipynb: Perform Kriging over the entire lake using the pykrige package.
  • Figures.ipynb: Produce figures for the manuscript.
  • environment.yml: Package requirements for conda environment.

Getting started

Clone the repository

Skip this step if you downloaded from Zenodo.

Clone this repository with

git clone https://github.com/asb219/LakeOCMixing.git

Now the repository should be in a directory named LakeOCMixing. Move into that directory with cd LakeOCMixing.

Create the virtual environment with conda

Create and activate this project's conda environment (called sedmix by default):

conda env create -f environment.yml
conda activate sedmix

Run the code

Once the virtual environment is activated, you can run the MCMC calibration of the mixing model with python mcmc.py.

To perform Kriging over Lake Constance and reproduce the plots in the manuscript, launch jupyter with jupyter notebook and run the Kriging.ipynb and Figures.ipynb notebooks, respectively.

All the resulting data files and figures will be written inside the output directory.

Issues

If you encounter a bug or other issues, please raise an issue at https://github.com/asb219/LakeOCMixing/issues.

Feel free to fork this repository and implement your own changes and features.

lakeocmixing's People

Contributors

asb219 avatar benvamit avatar

Watchers

 avatar

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.