The open-source modeling framework MAgPIE (Model of Agricultural Production and its Impact on the Environment) combines economic and biophysical approaches to simulate spatially explicit global scenarios of land use within the 21st century and the respective interactions with the environment. Besides various other projects, it was used to simulate marker scenarios of the Shared Socioeconomic Pathways (SSPs) and contributed substantially to multiple IPCC assessments. However, with growing scope and detail, the non-linear model has become increasingly complex, computationally intensive and non-transparent, requiring structured approaches to improve the development and evaluation of the model.Here, we provide an overview on version 4 of MAgPIE and how it addresses these issues of increasing complexity using new technical features: modular structure with exchangeable module implementations, flexible spatial resolution, in-code documentation, automatized code checking, model/output evaluation and open accessibility. Application examples provide insights into model evaluation, modular flexibility and region-specific analysis approaches. While this paper is focused on the general framework as such, the publication is accompanied by a detailed model documentation describing contents and equations, and by model evaluation documents giving insights into model performance for a broad range of variables.With the open-source release of the MAgPIE 4 framework, we hope to contribute to more transparent, reproducible and collaborative research in the field. Due to its modularity and spatial flexibility, it should provide a basis for a broad range of land-related research with economic or biophysical, global or regional focus.
7 November 2024 in Geoscientific Model Development
Biological nitrogen fixation (BNF) by symbiotic and free-living bacteria is an important source of plant-available nitrogen (N) in terrestrial ecosystems supporting carbon (C) sequestration and food production worldwide. Dynamic global vegetation models (DGVMs) are frequently used to assess the N and C cycles under dynamic land use and climate. BNF plays an important role in the components of both these cycles, making a robust representation of the processes and variables that BNF depends on important to reduce uncertainty within the C and N cycles and improve the ability of DGVMs to project future ecosystem productivity, vegetation patterns or the land C sink. Still, BNF is often modelled as a function of net primary productivity or evapotranspiration, and the actual drivers are neglected. We implemented plant-functional-type-specific limitations for BNF dependent on soil temperature and soil water content, as well as a cost of BNF, in the Lund–Potsdam–Jena managed Land (LPJmL) DGVM and compared the new (“C-costly”) against the previous (“Original”) approach and data from the scientific literature. For our comparison, we simulated a potential natural vegetation scenario and one including anthropogenic land use for the period from 1901 to 2016 for which we evaluate BNF and legume crop yields. Our results show stronger agreement with BNF observations for the C-costly than the Original approach for natural vegetation and agricultural areas. The C-costly approach reduced the overestimation of BNF, especially in hot spots of legume crop production. Despite the reduced BNF in the C-costly approach, yields of legume crops were similar to the Original approach. While the net C and N balances were similar between the two approaches, the reduced BNF in the C-costly approach results in a slight underestimation of N losses from leaching, emissions and harvest compared to the values in the literature, supporting further investigation of the underlying reasons, such as processes represented in DGVMs and scenario assumptions. While we see the potential for further model development, for example, to separate symbiotic and free-living BNF, the C-costly approach is a major improvement over the simple Original approach because of the separate representation of important drivers and limiting factors of BNF, and the C-costly approach also improves the ability of LPJmL to project future C and N cycle dynamics.
Multi-species grasslands are reservoirs of biodiversity and provide multiple ecosystem services, including fodder production and carbon sequestration. The provision of these services depends on the control exerted on the biogeochemistry and plant diversity of the system by the interplay of biotic and abiotic factors, e.g., grazing or mowing intensity. Biogeochemical models incorporate a mechanistic view of the functioning of grasslands and provide a sound basis for studying the underlying processes. However, in these models, the simulation of biogeochemical cycles is generally not coupled to simulation of plant species dynamics, which leads to considerable uncertainty about the quality of predictions. Ecological models, on the other hand, do account for biodiversity with approaches adopted from plant demography, but without linking the dynamics of plant species to the biogeochemical processes occurring at the community level, and this hampers the models’ capacity to assess resilience against abiotic stresses such as drought and nutrient limitation. While setting out the state-of-the-art developments of biogeochemical and ecological modelling, we explore and highlight the role of plant diversity in the regulation of the ecosystem processes underlying the ecosystems services provided by multi-species grasslands. An extensive literature and model survey was carried out with an emphasis on technically advanced models reconciling biogeochemistry and biodiversity, which are readily applicable to managed grasslands in temperate latitudes. We propose a roadmap of promising developments in modelling.
Forage offtake, leaf biomass and soil organic carbon storage are important ecosystem services of permanent grasslands, which are determined by climatic conditions, management and functional diversity. However, functional diversity is not independent of climate and management, and it is important to understand the role of functional diversity and these dependencies for ecosystem services of permanent grasslands, since functional diversity may play a key role in mediating impacts of changing conditions. Large-scale ecosystem models are used to assess ecosystem functions within a consistent framework for multiple climate and management scenarios. However, large-scale models of permanent grasslands rarely consider functional diversity. We implemented a representation of functional diversity based on the competitor, stress-tolerator and ruderal (CSR) theory and the global spectrum of plant form and function into the Lund Potsdam Jena managed Land (LPJmL) dynamic global vegetation model (DGVM) forming LPJmL-CSR. Using a Bayesian calibration method, we parameterised new plant functional types (PFTs) and used these to assess forage offtake, leaf biomass, soil organic carbon storage and community composition of three permanent grassland sites. These are a temperate grassland and a hot and a cold steppe for which we simulated several management scenarios with different defoliation intensities and resource limitations. LPJmL-CSR captured the grassland dynamics well under observed conditions and showed improved results for forage offtake, leaf biomass and/or soil organic carbon (SOC) compared to the original LPJmL 5 version at the three grassland sites. Furthermore, LPJmL-CSR was able to reproduce the trade-offs associated with the global spectrum of plant form and function, and similar strategies emerged independent of the site-specific conditions (e.g. the C and R PFTs were more resource exploitative than the S PFT). Under different resource limitations, we observed a shift in the community composition. At the hot steppe, for example, irrigation led to a more balanced community composition with similar C, S and R PFT shares of aboveground biomass. Our results show that LPJmL-CSR allows for explicit analysis of the adaptation of grassland vegetation to changing conditions while explicitly considering functional diversity. The implemented mechanisms and trade-offs are universally applicable, paving the way for large-scale application. Applying LPJmL-CSR for different climate change and functional diversity scenarios may generate a range of future grassland productivities.
The lpjmlkit R package (Breier et al., 2023) is an open source software that is developed for handling the open source dynamic global vegetation model (DGVM) LPJmL. It contains two main modules. One, LPJmL Runner, provides the functionality to create multiple model configurations and start the corresponding simulations either on a personal computer or on a high perfomance computing a (HPC) cluster with SLURM (Simple Linux Utility for Resource Management) support, in both cases requiring a working LPJmL installation. The other, LPJmL Data, offers a generic function that supports reading both simulation output and model input data in multiple file formats used by LPJmL. The associated data class LPJmLData contains both the data and the corresponding metadata to ensure data integrity within a single instance. LPJmLData objects act as data containers that provide modification functions such as subsetting or transformations of the data. LPJmLData objects can be exported into various other common R data formats. In addition to these modules, other functions are included to facilitate common use cases of LPJmL. This article introduces lpjmlkit, an R package that serves as an interface to LPJmL to simplify direct work with the model and to enable new generic software developments based on LPJmL simulations or data.