Write File for Gerris Import
hsCreateGerrisInputFile.Rd
Write a file for Gerris import based on a database table generated by StatAnalysis-evaluation "IwToQSim".
Usage
hsCreateGerrisInputFile(
mdb,
tbl,
gerrisParID,
csv.dir,
csv.file = paste0("forGerrisImport_", gerrisParID, ".csv"),
writeFile = TRUE,
tsFormat = .defaultTimeFormat(),
subst.na = "",
dbg = FALSE
)
Arguments
- mdb
full path to MS Access database containing table with required data
- tbl
name of table to be exported to csv file
- gerrisParID
Gerris parameter ID: one of "OBSB", "OCSB", "VNH4", "GESN", "GELP", "GESP", "SS", "Q"
- csv.dir
path to directory to which output file is to be written
- csv.file
optional name for output file, default: "forGerrisImport_<gerrisParID>.csv"
- writeFile
only if TRUE, a file is written, otherwise the corresponding data is only returned by this function but not written to file.
- tsFormat
format of timestamp to be used in output file (%d = day, %m = month, %Y = year, %H = hour, %M = minute, %S = second)
- subst.na
string value by which NULL values in table are subsubstituted in the output file
- dbg
if
TRUE
, debug messages are shown