sw_inputDataFromFiles | R Documentation |
Read simulation input data from files on disk
sw_inputDataFromFiles(dir = "", files.in = "files.in", quiet = FALSE)
dir |
a character vector that represents the path to the input data. Use
with |
files.in |
A character string. The file name (and path relative to
|
quiet |
logical. Quiet mode hides any SOILWAT2 messages,
see |
An object of class swInputData
.
sw_exec
for running a simulation
sw_inputData
and sw_inputDataFromFiles
for data input
dbW_getWeatherData
and
getWeatherData_folders
for weather data input.
path_demo <- system.file("extdata", "example1", package = "rSOILWAT2")
## ------ Simulation with data prepared beforehand ------------
## Read inputs from files on disk (including daily weather forcing)
sw_in2 <- sw_inputDataFromFiles(dir = path_demo, files.in = "files.in")
## Slots of the input object of \code{\linkS4class{swInputData}}
utils::str(sw_in2, max.level = 2)
## Execute the simulation run
sw_out2 <- sw_exec(inputData = sw_in2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.