This will try and find the PEcAn settings file in the following order:
--settings <file> passed as command line argument using --settings
inputfile passed as argument to function
PECAN_SETTINGS environment variable PECAN_SETTINGS pointing to a specific file
./pecan.xml pecan.xml in the current folder
Usage
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