Skip to content

EDmodel/ED2

Repository files navigation

Table of Contents

  1. Model Overview
  2. Current version and stable release versions
  3. Repository Contents
  4. Implementation Notes
  5. Further Information
  6. Code Development, Pull Requests, and Commits

The Ecosystem Demography Biosphere Model (ED2) is an integrated terrestrial biosphere model incorporating hydrology, land-surface biophysics, vegetation dynamics, and soil carbon and nitrogen biogeochemistry (Longo et al. 2019;Medvigy et al., 2009). Like its predecessor, ED (Moorcroft et al., 2001), ED2 uses a set of size- and age-structured partial differential equations that track the changing structure and composition of the plant canopy. With the ED2 model, in contrast to conventional biosphere models in which ecosystems with climatological grid cells are represented in a highly aggregated manner, the state of the aboveground ecosystem is described by the density of trees of different sizes and how this varies across horizontal space for a series of plant functional types. This more detailed description of ecosystem composition and structure enables the ED2 model to make realistic projections of both the fast-timescale exchanges of carbon, water and energy between the land and atmosphere, and long-term vegetation dynamics incorporating effects of ecosystem heterogeneity, including disturbance history and recovery.

  • This code available on GitHub is the current version of the model, updated frequently.
  • The latest stable version of the code (ED-2.2) can be found here.
  • For former versions of ED or ED2, check the Moorcroft Lab website.
  • A summary of the main changes between stable releases is available here.

Copies of the ED2 repository should contain the following directories:

  • ED: Contains the ED source code (src) and the directory for compilation (build). For further instructions on how to compile and use the model, we strongly suggest accessing the ED Wiki website: https://github.com/EDmodel/ED2/wiki
  • EDR: Contains the source code (src), build (build), and basic run files (run) for a stripped-down version of the ED2 models radiative transfer scheme.
  • EDTS: Contains the ED model test suite for evaluating the results of changes to the source code under a variety of run conditions.
  • BRAMS: Contains a version of the Brazilian Developments on the Regional Atmospheric Model System (Freitas et al. 2017) that was modified to run coupled biosphere-atmosphere simulations (Knox et al. 2015; Swann et al. 2015). Note: This has not been tested in a while, so the code may need updates to work with the most recent version of ED2.
  • Doc: Contains additional ED2 documentation automatically generated with Doxygen.
  • Ramspost: The BRAMS post-processing program, which generates GrADS files. Note: This has not been tested in a while, so the code may need updates to work with the most recent version of ED2.
  • RAPP: This directory contains the NCEP reanalysis pre-processor, that produces meteorological forcing in the ED-friendly format (HDF5) based on the NCEP/NCAR reanalysis (Kalnay et al 1996). The source code (src) and a build directory are included. The run directory contains the namelist and a shell script to help with the downloading process. A brief instruction can be found in the directory too.Note: This has not been tested in a while, and other users have developed scripts to convert more up-to-date reanalyses.
  • R-utils: A collection of R scripts utilities for model pre- and post-processing (mostly called by R scripts located in ED/Template).

The primary data structure in ED, which can be found in ed_state_vars.F90, is a named, nested array of arrays. Each level of the heirarchy contains many fields of depth one, but the key large scale structure is as follows:

  • grid: The most coarse data in the model. Basically just a simulation book-keeping linking of polygons.
  • polygon: A collection of sites sharing a meteorology.
  • site: A collection of patches sharing a common soil system and ground hydrology.
  • patch: A collection of cohorts sharing a disturbance history and age.
  • cohort: A collection of plants of identical PFT and height.

Note: height and age, being continuous variables, are "binned". "Identical" in this context means sufficiently similar to be placed in the same bin. These bins are dynamically defined, based on the number of classes sought by the user and the similarity along the age and height axes.

  • Most of the existing documentation on how to pre-process, compile, and run the ED2 model is available in our Wiki.
  • For the technical description of the various ED2 model features, we suggest looking at this reference list (Tip: do not skip the Supporting Information of these papers, they contain relevant details).
  • For a partial list of studies that have used ED or ED2, check here.

If you plan to develop the code, please refer to the Wiki entries on code organization and design philosophy, to ensure your code developments are consistent with the existing model. Also, make sure that the code is thoroughly tested, and successfully passes the internal GitHub tests.

We strongly encourage that code developments are properly documented. Please refer to the Doxygen instructions, and especially the Doxygen and Git commits section, so additional documentation can be automatically generated from the source code comments.