Writes an xml and ED2IN config files for use with the Ecological Demography model. Requires a pft xml object, a list of trait values for a single model run, and the name of the file to create

write.config.ED2(trait.values, settings, run.id,
  defaults = settings$constants, check = FALSE, ...)

Arguments

trait.values

Named list of trait values, with names corresponding to PFT

settings

list of settings from pecan settings file

run.id

id of run

defaults

list of defaults to process. Default=settings$constants

check

Logical. If TRUE, check ED2IN validity before running and throw an error if anything is wrong (default = FALSE)

Value

configuration file and ED2IN namelist for given run