Giter VIP home page Giter VIP logo

matteorizzuto / rewiringcarboncycle Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.42 MB

This repository contains code and data to reproduce the analyses described in Rizzuto et al. (2024) Journal of Geophysical Research: Biogeosciences.

Home Page: https://doi.org/10.1029/2024JG008026

License: Creative Commons Attribution Share Alike 4.0 International

TeX 0.87% Mathematica 99.13%
animals carbon-cycle climate-change ecology-modelling ecosystem-model mathematical-modelling nature-based-solutions rewilding simulations animating-carbon-cycle zoogeochemistry

rewiringcarboncycle's Introduction

A theoretical framework for animal-driven carbon sequestration

This repository contains the code to replicate the numerical analyses of the model presented in Rizzuto et al. Rewiring the carbon cycle: a theoretical framework for animal-driven ecosystem carbon sequestration.

This repository contains the following items:

  • in folder Code,

    • CarbonModelAnalysis.nb, this is the Wolfram Mathematica notebook we used to solve the model analytically, and to find the model's equilibria and expressions for the ecosystem processes of interest, which are used in the SupportingCode.Rmd R notebook in this folder. This file is also available in text format (.txt).

    • SupportingCode.Rmd, this is the R notebook where we numerically analyze our model, as described in the manuscript. It contains code to reproduce all figures in the manuscript.

    • Bibliography.bib, a bibtex file containing the references cited in the R markdown notebook.

  • in folder Data,

    • pDATA1.csv, pDATA2.csv, cnDATA.csv, files containing data to run the model. The SupportingCode.Rmd file contains the code that was use to generate these .csv files.
  • in folder Results,

    • empty folder to collect results from running or knitting SupportingCode.Rmd; note that this folder needs to be created before replicating the analyses, see below

Additional information on reproducing our analyses

Information on the versions of R and of the packages used is provided in both versions of the SupportingCode file.

To reproduce our model analyses, please run all code chunks or knit the R notebook. Please note that the R notebook requires the following folder structure to work:

../
├── Code
├── Data
└── Results

Any change to the structure of the folder needs to be reflected in the relative paths used throughout the R notebook. A simple search for “../“ should suffice to find all instances in which relative paths are used and to update them as needed.

The code presented in CarbonModelAnalysis.nb can be used in Wolfram Mathematica to find the model’s equilibria. An alternative .txt version of this notebook can be perused, if Wolfram Mathematica is not available.

rewiringcarboncycle's People

Contributors

matteorizzuto 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.