Virtual Ecosystem example data

Example data is included with Virtual Ecosystem to provide an introduction to the file formats and configuration. Using this data is described in the usage documentation and this page describes the structure and contents of the example data folder.

It might be useful to install the ve_example directory to a location of your choice when reading these notes, using the command shown below, but the contents of the key files are also linked on this page.

ve_run --install-example /location/path/

Example data directory structure

The ve_example directory contains the following sub-directories:

  1. The config directory contains three configuration files that combine to provide a basic complete configuration for the example data.

  2. The data directory contains NetCDF format files containing the variables required to initialise the model and then iterate over a time series.

  3. The empty out directory is simply used as a location to store model outputs.

  4. The generation_scripts directory contains Python scripts that are used to generate the contents of the data directory. You won’t typically need to look at these, but they provide simple recipes for creating or editing the input data files.

  5. A source directory that contains files used to create the input data files.

Configuration files

The example configuration files are:

  • The ve_run.toml configures the models to be used in the simulation and the order in which they are initialised and updated.

  • The data_config.toml file configures the initial variables to be loaded and sets the paths to the source files providing those variables.

  • The animal_functional_groups.toml file provides basic configuration for the animals model to set functional group definitions.

  • The plant_config.toml file provides basic configuration for the plants model to set functional group definitions.

Example data files

The data configuration file sets up the links between the variables used in the models and the provided data file in which they are stored. The NetCDF files in the data directory are all generated by the Python scripts provided in the generation_scripts directory, which provide some simple recipes for creating various kinds of input data and saving them in the required format.

Warning

All of these data files currently contain artificial data to test the program flow and data handling of the Virtual Ecosystem simulation. Although some values are taken from real source data, this is not yet a meaningful real world example dataset.

The common.py script file defines some common elements that are used across the data generation scripts, primarily the spatial grid to be used and the dates for time series data.

Elevation data

The data/example_elevation_data.nc file provides:

Variable

Name

Unit

Dims

elevation

elevation

m

XY

This code creates a dummy elevation map from a digital elevation model (SRTM) which is required to run, amongst others, the hydrology_model. The initial data covers the region 4°N 116°E to 5°N 117°E, see SAFE wiki for reference and download. We reduce the initial 30m spatial resolution to match the 9 x 9 grid of the example simulation while covering an area similar to the climate dummy data.

Climate data

The example_climate_data.nc file provides:

Variable

Name

Unit

Dims

air temperature

air_temperature_ref

°C

XYT

relative humidity

relative_humidity_ref

unitless

XYT

atmospheric pressure

atmospheric_pressure_ref

kPa

XYT

precipitation

precipitation

mm \(\textrm{month}^{-1}\)

XYT

atmospheric \(\ce{CO_{2}}\) concentration

atmospheric_co2_ref

ppm

XYT

mean annual temperature

mean_annual_temperature

°C

XY

The dummy climate data for the example simulation is based on monthly ERA5-Land data which can be downloaded from the Copernicus climate data store. See the climate data recipes page for more details.

Hydrology data

The example_surface_runoff_data.nc file provides:

Variable

Name

Unit

Dims

surface runoff

surface_runoff

mm

XY

The hydrology model requires an initial surface runoff field to calculate accumulated surface runoff. This value is currently created using a normal distribution, and adjusted to Virtual Ecosystem conventions, but will in the future be estimated from rainfall data using the SPLASH model.

Soil data

The example_soil_data.nc file provides:

Variable

Name

Unit

Dims

pH

pH

unitless

XY

Bulk soil density

bulk_density

kg \(\textrm{m}^{-3}\)

XY

Soil clay fraction

clay_fraction

unitless

XY

Soil low molecular weight carbon pool

soil_c_pool_lmwc

kg C \(\textrm{m}^{-3}\)

XY

Soil mineral associated organic matter carbon pool

soil_c_pool_maom

kg C \(\textrm{m}^{-3}\)

XY

Soil microbial carbon pool

soil_c_pool_microbe

kg C \(\textrm{m}^{-3}\)

XY

Soil particulate organic matter carbon pool

soil_c_pool_pom

kg C \(\textrm{m}^{-3}\)

XY

Soil particulate organic matter enzyme pool

soil_enzyme_pom

kg C \(\textrm{m}^{-3}\)

XY

Soil mineral associated organic matter enzyme pool

soil_enzyme_maom

kg C \(\textrm{m}^{-3}\)

XY

This code creates a set of plausible values for which the soil_model absolutely has to function sensibly for. Descriptions of the soil pools can be found here.

Litter data

The example_litter_data.nc file provides:

Variable

Name

Unit

Dims

above ground metabolic litter pools

litter_pool_above_metabolic

kg C \(\textrm{m}^{-2}\)

XY

above ground structural litter pools

litter_pool_above_structural

kg C \(\textrm{m}^{-2}\)

XY

woody litter pools

litter_pool_woody

kg C \(\textrm{m}^{-2}\)

XY

below ground metabolic litter pools

litter_pool_below_metabolic

kg C \(\textrm{m}^{-2}\)

XY

below ground structural litter pools

litter_pool_below_structural

kg C \(\textrm{m}^{-2}\)

XY

lignin proportion of above ground structural litter

lignin_above_structural

unitless

XY

lignin proportion of woody litter

lignin_woody

unitless

XY

lignin proportion of below ground structural litter

lignin_below_structural

unitless

XY

The generation script creates a set of plausible values for which the litter_model absolutely has to function sensibly for. Descriptions of the litter pools can be found here.

Plant data

The example_plant_data.nc file provides the following variables. Note that the plant data introduces a new axis dimension for the cohorts of plant functional groups (C). In this example data, a single cohort of each of the two configured functional groups is added for each of the 81 grid cells, giving 162 entries along the cohort axis.

Variable

Name

Unit

Dims

Cohort plant functional type

plant_cohorts_pft

string

C

Cohort diameter at breast height

plant_cohorts_dbh

m

C

Photosynthetic photon flux density

photosynthetic_photon_flux_density

µ mol m\(^{-2}\) s\(^{-1}\)

XYT