rpmodel

An R implementation of the P-model.

https://github.com/geco-bern/rpmodel

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

An R implementation of the P-model.

Basic Info
Statistics
  • Stars: 35
  • Watchers: 7
  • Forks: 32
  • Open Issues: 11
  • Releases: 0
Created over 7 years ago · Last pushed almost 2 years ago
Metadata Files
Readme

README.md

R-CMD-check codecov

Purpose

rpmodel provides an implementation of the P-model (Prentice et al., 2014; Wang et al., 2017; Stocker et al., 2020) for predicting acclimated photosynthetic parameters, assimilation, and dark respiration rates as a function of the environment. The main function is rpmodel() which returns a list of variables that are mutually consistent within the theory of the P-model (see Usage ). Further functions used within rpmodel() are also provided through the package.

Important note:

The P-model predicts how photosynthesis acclimates to a changing environment, coordinating stomatal conductance, Vcmax and Jmax. This yields a model that has the form of a light use efficiency model, where gross primary production scales linearly with absorbed light, as described in Stocker et al. 2020. It is important to note that this implies that the P-model is valid only for simulating responses to the environment that evolve over the time scale at which the photosynthetic machinery (e.g., Rubisco) can be assumed to acclimate. Sensible choices are on the order of a couple of weeks to a month. In other words, the arguments (climatic forcing), provided to rpmodel() should represent typical daytime mean values, averaged across a couple of weeks. The output is then representative also for average values across the same time scale.

Usage

This loads the rpmodel package and executes the rpmodel() function without $J{\text{max}}$ limitation (argument `methodjmaxlim = "none"), and with a temperature-independent quantum yield efficiency (argumentdoftempkphio = FALSE): r library(rpmodel) out_pmodel <- rpmodel( tc = 20, # temperature, deg C vpd = 1000, # Pa, co2 = 400, # ppm, fapar = 1, # fraction , ppfd = 300, # mol/m2/d, elv = 0, # m.a.s.l., kphio = 0.049977, # quantum yield efficiency as calibrated for setup ORG by Stocker et al. 2020 GMD, beta = 146, # unit cost ratio a/b, c4 = FALSE, method_optci = "prentice14", method_jmaxlim = "none", do_ftemp_kphio = FALSE, # corresponding to setup ORG do_soilmstress = FALSE, # corresponding to setup ORG verbose = TRUE ) `

For more information and examples see Usage.

Installation

Stable release

rpmodel is available on CRAN here. To install and load, run the following commands in your R terminal:

r install.packages("rpmodel") library(rpmodel)

Development release

To install and load the latest version of the rpmodel package (development release, not yet on CRAN) run the following command in your R terminal:

r if(!require(devtools)){install.packages(devtools)} devtools::install_github( "stineb/rpmodel", build_vignettes = TRUE ) library(rpmodel)

Author and contact

Benjamin Stocker benjamin.stocker@gmail.com

References

Stocker, B. D., Wang, H., Smith, N. G., Harrison, S. P., Keenan, T. F., Sandoval, D., Davis, T., and Prentice, I. C.: P-model v1.0: an optimality-based light use efficiency model for simulating ecosystem gross primary production, Geosci. Model Dev., 13, 1545–1581, https://doi.org/10.5194/gmd-13-1545-2020, 2020.

Wang, H., Prentice, I. C., Keenan, T. F., Davis, T. W., Wright, I. J., Cornwell, W. K.,Evans, B. J., and Peng, C.: Towards a universal model for carbon dioxide uptake by plants, Nat Plants, 3, 734–741, 2017.

Prentice, I. C., Dong, N., Gleason, S. M., Maire, V., and Wright, I. J.: Balancingthe costs of carbon gain and water transport: testing a new theoretical frameworkfor plant functional ecology, Ecology Letters, 17, 82–91, 10.1111/ele.12211, 2014.

Acknowledgement

This project was funded by Marie Sklodowska-Curie fellowship H2020-MSCA-IF-2015, project FIBER, grant number 701329.

Owner

  • Name: GECO
  • Login: geco-bern
  • Kind: organization
  • Location: Switzerland

Geocomputation and Earth Observation at the University of Bern

GitHub Events

Total
  • Watch event: 5
Last Year
  • Watch event: 5

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 17
  • Total pull requests: 8
  • Average time to close issues: 2 months
  • Average time to close pull requests: 5 months
  • Total issue authors: 8
  • Total pull request authors: 3
  • Average comments per issue: 1.29
  • Average comments per pull request: 0.63
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: about 8 hours
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • davidorme (10)
  • Hongwuliang (1)
  • stineb (1)
  • arthur-e (1)
  • yunkepeng (1)
  • kongdd (1)
  • mpeaucelle (1)
  • Peatyanne (1)
Pull Request Authors
  • khufkens (6)
  • arthur-e (1)
  • davidorme (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 252 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 5
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: rpmodel

P-Model

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 5
  • Downloads: 252 Last month
Rankings
Forks count: 2.7%
Stargazers count: 10.6%
Dependent repos count: 13.1%
Average: 22.0%
Dependent packages count: 28.7%
Downloads: 54.7%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6 depends
  • covr * suggests
  • dplyr * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • markdown * suggests
  • purrr * suggests
  • testthat * suggests
  • tidyr * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/deploy_docs.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/static.yml actions
  • actions/checkout v3 composite
  • actions/configure-pages v3 composite
  • actions/deploy-pages v1 composite
  • actions/upload-pages-artifact v1 composite