Description Usage Arguments Details Examples
View source: R/write_xdb_funs.R
This function writes the experiment arguments. Subsequent write_xdb_* functions append information about the rotational components. See http://salusmodel.glg.msu.edu/salus.ddb.xml for more information about SALUS parameter options. This function should be followed with write_xdb_rotation, write_xdb_m* (rotation management), and write_xdb_bottomMatter functions to complete the Experiment file.
1 2 | write_xdb_experiment(outFile, ExpID, RunTitle, startYear, NYrs, startDOY,
StationID, Weatherfp, SoilID, Soilfp, Cropfp)
|
outFile |
Full file path for an existing .xdb.xml to appended to, created with write_xdb_topMatter |
ExpID |
Sequential ID for experiment |
RunTitle |
Title for the experiment |
startYear |
Starting year of the simulation - SYear parameter |
NYrs |
Number of model years |
startDOY |
Starting day of year, fills in SDOY parameter |
StationID |
Weather Station ID |
Weatherfp |
Filepath to weather station .wdb.xml file. Currently relative to Experiment file |
SoilID |
Soil ID |
Soilfp |
Filepath to soil .sdb.xml file. Currently relative to Experiment file |
Cropfp |
Filepath to crop .cdb.xml database file. Currently relative to Experiment file |
All other SALUS Experiment parameters are set currently as default.
1 2 3 4 5 6 7 8 | # file path to existing .xdb.xml file created by write_xdb_topMatter
fileOut <- 'C:/Users/deinesji/1PhdJill/test.xdb.xml'
# append Experiment parameters to .xdb.xml; numeric parameters can be character or numeric
write_xdb_experiment(fileOut, ExpID = 1, RunTitle = 'Test', startYear = 2006,
NYrs = 3, startDOY = 270, StationID = 1001,
Weatherfp = '1001.wdb.xml', SoilID = 'KS1017570',
Soilfp = 'KS.sdb.xml', Cropfp = 'cropsn29Dec2016.cdb.xml')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.