prepareImport: Helper function: prepareImport (imports and prepares input...

Description Usage Arguments Value Examples

View source: R/vs2dhReadConfig.R

Description

Helper function: prepareImport (imports and prepares input file)

Usage

1
2
prepareImport(model.path, mdb.path = system.file("extdata",
  "InputDescription.xls", package = "kwb.vs2dh"), dbg = TRUE)

Arguments

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

Value

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)

Examples

1
2
3
4
5
## Not run: 
model.path <- system.file("extdata", "vs2dh_example/tutorial2", package = "kwb.vs2dh")
prepareImport(model.path)

## End(Not run)

KWB-R/kwb.vs2dh documentation built on Sept. 10, 2019, 12:20 p.m.