R/vs2dhReadConfig.R
prepareImport.Rd
Helper function: prepareImport (imports and prepares input file)
prepareImport(model.path, mdb.path = system.file("extdata", "InputDescription.xls", package = "kwb.vs2dh"), dbg = TRUE)
model.path | full path to folder containing vs2dh.dat |
---|---|
mdb.path | full path to the folder containing the InputDescription.xls which is used as lookup table for converting FORTRAN to R parameter names (Default: system.file("extdata", "InputDescription.xls", package = "kwb.vs2dh")) |
dbg | if TRUE text output is printed on the screen |
Read vs2dhi.dat and does some preparations steps which are stores in a list which contains the sublists "input" (raw imported vs2dh.dat file), "inpDescription" (lookup table defined in file "mdb.path"), "res" (prepared table with parameters names and values) and "rechargePeriods" (summary of start/endlines of file "input" for each recharge period)
if (FALSE) { model.path <- system.file("extdata", "vs2dh_example/tutorial2", package = "kwb.vs2dh") prepareImport(model.path) }