This will try and find the PEcAn settings file in the following order:

  1. --settings <file> passed as command line argument using --settings

  2. inputfile passed as argument to function

  3. PECAN_SETTINGS environment variable PECAN_SETTINGS pointing to a specific file

  4. ./pecan.xml pecan.xml in the current folder

read.settings(inputfile = "pecan.xml")

Arguments

inputfile

the PEcAn settings file to be used.

Value

list of all settings as loaded from the XML file(s)

Details

Once the function finds a valid file, it will not look further. Thus, if inputfile is supplied, PECAN_SETTINGS will be ignored. Even if a file argument is passed, it will be ignored if a file is passed through a higher priority method.

Author

Shawn Serbin

Rob Kooper

David LeBauer

Ryan Kelly

Betsy Cowdery

Examples