Giter Club home page Giter Club logo

phenograss-example's Introduction

Build Status Buy Me A Coffee Donate using Liberapay

PhenoGrass Model Example

This is a working example of the PhenoGrass model as described in the Nature Climate Change paper: "Productivity of North American grasslands is increased under future climate scenarios despite rising aridity" by myself and co-authors. When using this code (adapted or not) reference it as:

Hufkens K., Keenan T. F., Flanagan L. B., Scott R. L., Bernacchi C. J., Joo E., Brunsell N. A., Verfaillie J. & Richardson A. D. (2016). Productivity of North American grasslands is increased under future climate scenarios despite rising aridity. Nature Climate Change, 6, 710 - 714.

Note that this work has been released under a Affero Genaral Public License V3 and any use of this code is therefore bound to this agreement. In particular this means that source code has to be open source and freely available to the public. The model as formulated here was built upon the framework by Choler et al. 2010. I'm indebted to the authors for this framework.

Model parameters

The model parameters as listed in the publication above are rounded. The exact parameters used by the code above are listed the parameters folder. Below I list them again but with parameter name for clarity (which is lacking in the parameter file itself). Assignment of these parameters can be found in the phenograss.f90 as of line 35.

Parameter Value
b1 124.502121
b2 0.00227958267
b3 0.0755224228
b4 0.519348383
L 2.4991734
Phmin 8.14994431
h 222.205673
g 33.3597641
Phmax 37.2918091

Figure 1

In particular this is a worked example which recreates Figure 1 of the journal article. It therefore includes a subset of the original data (due to size restrictions) and uses the parameters and model framework as used throughout the rest of the publication.

Either download the zipped project or clone the project using:

git clone https://github.com/khufkens/phenograss.git

Subsequently, run the Figure_1.r R script in the created directory:

On Linux or OSX you can call this script directly using:

Rscript Figure_1.r

All model output and the generated PDF figure can be found in the output subdirectory within the root directory of the project. The result should look like the image below.

Notes:

The code depends on a working gfortran compiler, which is freely available for all OS. However, you are on your own when it comes to rewriting the R code for Windows. The current code should run out of the box on Linux and OSX

phenograss-example's People

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.