Initial conditions - mpaiao/ED2 GitHub Wiki

Table of Contents

Vegetation Initialization

The initialization of vegetation structure in the ED-2.2 model requires that the user define, for each polygon, the attributes of the hierarchy of sites, patches, and cohorts. It is usually relatively easy to convert plot census information into vegetation files by assuming each plot corresponds to a patch and each tree in a patch corresponds to a cohort. It may be necessary to break large plots or mapped stands into subplots. The following sections explain the structure on how to build these files. In order to use these files to initialize the model, the user must set NL%IED_INIT_MODE to 3 (in case site level information is available) or 6 (in case it is not) in ED2IN.

In case you would like to retrieve the forest structure from a previous ED-2.1 or ED-2.2 simulation, the user may set NL%IED_INIT_MODE=5 in ED2IN. Important: this will only set the forest structure from the previous simulation, but otherwise it will start a new simulation (e.g. soil moisture, vegetation temperature will use the typical initial conditions).

In case you would like to resume a previous simulation, use NL%RUNTYPE='HISTORY' in ED2IN. This will read every variable in the history file, and continue the simulation. Important: this option is intended to be used within the same version of the code (i.e. same Github commit): for example, you may want to use this option to resume a simulation interrupted due to a power outage. We strongly discourage setting NL%RUNTYPE='HISTORY' with a new commit and providing history files from an older commit.

The files described below are used by options NL%IED_INIT_MODE=3 or NL%IED_INIT_MODE=6.

Site file format (*.site)

The site file is only used when running with NL%IED_INIT_MODE = 3. This file comes in two formats and file format is specified in the file header:

nsites  <num> file_format <ff>
Both file formats then contain a site attribute header line and then the following site attributes
Attribute Unit Description
sitenum Integer Site number
area proportion Site fractional area
TCI float Topography convergence index (Bevin and Kirkby, 1979)
elev meters elevation
slope degrees slope
aspect degrees Aspect
Soil {1-17} Soil class (see NSLCON in in ED2IN Namelist)

For file format #2 there is then an N x (N+1) adjacency matrix that is used in the runoff calculation. For file format 1 the adjacency matrix is approximated based on the proportional abundance of each site and assuming a random distribution of sites. File format #3 is like #1 but a soil class is specified for each soil layer rather than one class for all layers. The adjacency matrix has N+1 columns because the last column is the transition to the water patch.

Patch file format (*.pss)

The patch file is a space delimited ASCII file, that describe patch-level properties such are the are and the soil carbon and nitrogen stocks. The format of the pss file depends on the NL%IED_INIT_MODE.

  • NL%IED_INIT_MODE=3. The file should contain the following elements:
Variable Units Description
time years Year (dummy variable)
Site integer Site number (arbitrary, but it must be consistent with the site file)
patch String Unique patch identifier (arbitrary, but it must be consistent with the css file)
trk 0 – pasture; 1 – forest plantation; 2 – tree fall; 3 – burned; 4 – abandonment; 5 — selective logging (felling); 6 — selective logging (skid trails); 7 — cropland Disturbance type
age years Patch age since last disturbance
area proportion Fractional area represented by patch. The sum of the areas of all patches within the same site must be 1.
water m3 m-3 Soil moisture (dummy variable)
fsc KgC m-2 Fast soil carbon
stsc KgC m-2 Structural soil carbon
stsl KgC m-2 Structural soil lignin
ssc KgC m-2 Slow soil carbon
psc KgC m-2 Passive soil carbon (not actually read)
msn KgN m-2 Mineralized soil N
fsn KgC m-2 Fast soil N
  • NL%IED_INIT_MODE=6. The file should contain the following elements:
Variable Units Description
time years Year (dummy variable)
patch String Patch identifier (arbitrary, but it must be consistent with the css file)
trk 0 – pasture; 1 – forest plantation; 2 – tree fall; 3 – burned; 4 – abandonment; 5 — selective logging (felling); 6 — selective logging (skid trails); 7 — cropland Disturbance type
age years Patch age since last disturbance.
area proportion Fractional area represented by patch. The sum of the areas of all patches within the same site must be 1.
water m3 m-3 Not actually read
fsc KgC m-2 Fast soil carbon
stsc KgC m-2 Structural soil carbon
stsl KgC m-2 Structural soil lignin
ssc KgC m-2 Slow soil carbon
lai mLeaf2 mGround-2 Leaf area index (dummy variable)
msn KgN m-2 Mineralized soil N
fsn KgC m-2 Fast soil N
nep KgC m-2 yr-1 Net ecosystem productivity (dummy variable)
gpp KgC m-2 yr-1 Gross primary productivity (dummy variable)
rh KgC m-2 yr-1 Heterotrophic respiration (dummy variable)

Dummy variables are legacy variables that are no longer needed by ED-2. You can set them to zero, for example.

Cohort file format (*.css)

Variable Unit Description
time years Year (dummy variable)
patch string Patch identifier (arbitrary, but it must be consistent with the pss file)
cohort string Cohort identifier (arbitrary, it must be unique within the same patch)
dbh cm Stem diameter at breast height
hite m Tree height (dummy variable)
pft integer Plant Functional Type, consistent with the default numbers or the XML-defined PFTs
n Plant (stem) m-2 Local (within-patch) stem density.
bdead KgC plant-1 Biomass of structural carbon (dummy variable)
balive KgC plant-1 Biomass of living tissues — leaf, fine root, sapwood, bark (dummy variable)
lai mLeaf2 mGround-2 Leaf area index (dummy variable)

Dummy variables are legacy variables that are no longer needed by ED-2. You may want to include the values to keep things consistent, but otherwise, you may set them to zero.

Converting forest inventory data to pss/css

A sample set of scripts to convert forest inventory plots to pss/css files (NL%IED_INIT_MODE=6) is available here. Currently this script works only for tropical forest PFTs.

To use it, you must download all the three files, and place them in the same directory.

  • allometry.r. This subroutine computes the dummy variables in the css files, so they are consistent.
  • pft_allom_table.csv. List of default parameters by allometry (consistent as of Jan 2019).
  • make_bioinit.r. The main script, which calls/reads the other files.
You must also provide a standardised forest inventory plot file in CSV format. The script expects the following variables (names are case sensitive and must appear in the first line of the CSV file, the order does not matter).
  • plots — Unique plot identification. Refrain from using very large plots. The definition of "gap" in ED-2 is typically associated with the crown area of a large tree (about 175 m2 in the tropics). In case the plot is much larger than this, split the original plots and provide the smaller plots in the CSV file.
  • tag — Unique ID for tree. Do not repeat tags for trees in the same plot.
  • scientific — Scientific name. Currently not used by the script, but it could be useful for non-tropical PFTs.
  • wood.dens — Wood density (g cm-3). In case the wood density is not known, use some wood density data base (e.g. Chave et al.,2009) and the scientific names to provide estimates.
  • dbh — Stem diameter at breat height (cm).
You must also edit the first few lines of the make_bioinit.r script, specifically, set the following variables:
  • place — Name of the site, for output directory.
  • census.csv — Name of the CSV file with the forest inventory data (no paths).
  • iata – Short code used to identify the site.
  • identity – Tag for forest inventory data (it may be useful for multiple data sets in the same site).
  • lon – Site longitude. Longitude goes from -180 to 180. Make sure to use the correct coordinates, because ED-2 reads this information.
  • lat – Site latitude. Make sure to use the correct coordinates, because ED-2 reads this information.
  • year – Year of measurements, used to populate dummy variable year.
  • subplot.area – Area of sub-plots (m2), in case of differential sampling efforts. Put the full size in case all trees the same sampling effort was used for all measured trees.
  • allplot.area – Total plot area (m2).
  • nplots — Number of plots.
  • min.dbh.subplot — Minimum DBH (cm) for trees to be measured in the sub-plot. In case the same sampling effort was used for all measured trees, set this to the minimum DBH measured in the plot.
  • min.dbh.allplot — Minimum DBH (cm) for trees to be measured in the entire plot.
  • fast.soil.c — Carbon stocks in the fast (metabolic litter + microbial) soil carbon (kgC m-2). Currently the same value is used for all plots.
  • struct.soil.c — Carbon stocks in the structural (woody debris) soil carbon (kgC m-2). Currently the same value is used for all plots.
  • struct.soil.l — Lignin stocks in the structural (woody debris) soil carbon (kgC m-2). Currently the same value is used for all plots.
  • fast.soil.c — Carbon stocks in the slow (humified + passive) soil carbon (kgC m-2). Currently the same value is used for all plots.
  • min.soil.n — Nitrogen stocks in the mineralised pool (kgN m-2). Currently the same value is used for all plots.
  • fast.soil.c — Nitrogen stocks in the fast (metabolic litter + microbial) soil pool (kgN m-2). Currently the same value is used for all plots.
  • iallom — Allometric setting to fill in the dummy variables in the css files. This is consistent with NL%IALLOM% in ED2IN.
  • pft.idx — List of PFTs to use. Currently the script works only for tropical forest PFTs (2,3,4).

Soil temperature and soil moisture

There are a number of ways for the user to prescribe the initial soil temperature, and soil moisture content. These are controlled by the ED2IN setting ISTWFLG:

  • 0 – Interpolate from the coarser nested grid
  • 1 – Read values from file (ISTWFLN)
  • 2 – Set values prescribed values
For case 1, refer to the function “ecmwf_soil” for the exact file format. For case 2, soil moisture is set based on the values given in the ED2IN setting SLMSTR. Soil temperature, on the other hand, is based on subtracting the values in STGOFF from the air temperature. In all cases, soil heat is set based on soil temperature and moisture.

Land cover

Land cover setting is specified by the ED2IN setting IVEGTFLG. This setting is used only for regional runs, and the idea is to eliminate polygons that would fall over a water body (ocean, lakes, rivers). In case of regional run, the first grid should always have IVEGTFLG set to 1. The standard land cover setting comes from the Olson Global Ecosystem data with roughly 1 km resolution. Even though the data itself contains information on which type of vegetation (or water) exists at each point, all that ED2 uses is the information on whether the point has land or water.

The subroutines that control the land cover mapping are adaptations of the ones available at RAMS and BRAMS.

⚠️ **GitHub.com Fallback** ⚠️