The pyrealm logo: a green leaf over the shining sun.

The pyrealm package provides Python implementations of models of plant productivity and demography. All of the functionality within the package is built to accept arrays of data and uses the numpy package to efficiently calculate values across datasets with multiple dimensions, up to analyses of global spatial datasets of long-running time series.

The pyrealm package

Version 2.0.0

The pyrealm package has just been updated to version 2.0.0. There are a quite a few breaking changes to the previous version, documented in the migration guide to help update existing code. We strongly recommend upgrading to the new version.

The package currently provides the following modules:

The core module

Contains fundamental utilities and physics functionality shared across the package, including the hygro and the utilities submodules.

The pmodel module

Fitting the P Model, which is an ecophysiological model of optimal carbon dioxide uptake by plants (Prentice et al., 2014, Stocker et al., 2020, Wang et al., 2017), along with various extensions.

The splash module

Fits the SPLASH v1 model, which can be used to estimate soil moisture, actual evapotranspiration and soil runoff from daily temperature, precipitation and sunshine data (Davis et al., 2017).

The demography module

Provides functionality for modelling plant allocation and growth and demography, including classes to represent plant functional types, cohorts and communities. This module includes an implementation of the T Model for estimating plant allocation of gross primary productivity to growth and respiration (Li et al., 2014). This module is still in active development but a lot of initial functionality is present.

Getting started with pyrealm

The Getting Started page gives a short introduction how to install and run pyrealm.

Indices and tables