SVDc
The SVD console application (“SVDc”) is a command-line version of SVD. It contains the same core functionality as the version with a user interface (SVD UI) (actually, both applications use the same code base), but does not use a graphical user interface. The main purpose of SVDc is for automating simulation jobs and/or for running in environments where no graphical user interface is available. The name of the executable of the console version is SVDc (whereas the name of the GUI version is SVDUI).
Instructions
Run SVDc from a shell with options:
SVDc config-file years additional-options
config-filepath of a valid SVD configuration file.years: the number of years to simulateadditonal-options: additional key=value pairs that represent values for settings that are set after the project is loaded, i.e., to change values given in the config file. If the value contains and space characters, the value string must be enclosed by “-characters.
A typical use is to run multiple simulations, and use different input data for each simulation (think climate data) and store the results to a specific location. Here is an example:
# run this script
svdc E:\Daten\SVD\projects\gye\config_historic.conf 142 filemask.run=41 modules.fire.ignitionFile=fire/ignitions/HadGEM2-ES-85_1.txt climate.file=climate/historic.txt
svdc E:\Daten\SVD\projects\gye\config_historic.conf 142 filemask.run=42 modules.fire.ignitionFile=fire/ignitions/HadGEM2-ES-85_2.txt climate.file=climate/historic.txtThis script:
loads the project
config_historic.conf. All relative file paths are resolved relative to thegyefolder where the config file is locatedThe simulation duration is set to 142 years
the
filemask.runsetting is set - this can be used to change multiple output file pathssimilarly, a specific
ignitionFilefor the fire module, and aclimate.fileis set. Note that relative paths are always resolved relative to the location of the config file.