Video/Audio Open Access

Wrap your model in an R package!

Rustler, Michael; Sonnenberg, Hauke

The groundwater drawdown model WTAQ-2, provided by the United States Geological Survey for free, has been "wrapped" into an R package, which contains functions for writing input files, executing the model engine and reading output files. By calling the functions from the R package a sensitivity analysis, calibration or validation requiring multiple model runs can be performed in an automated way. Automation by means of programming improves and simplifies the modelling process by ensuring that the WTAQ-2 wrapper generates consistent model input files, runs the model engine and reads the output files without requiring the user to cope with the technical details of the communication with the model engine. In addition the WTAQ-2 wrapper automatically adapts cross-dependent input parameters correctly in case one is changed by the user. This assures the formal correctness of the input file and minimises the effort for the user, who normally has to consider all cross-dependencies for each input file modification manually by consulting the model documentation. Consequently the focus can be shifted on retrieving and preparing the data needed by the model. Modelling is described in the form of version controlled R scripts so that its methodology becomes transparent and modifications (e.g. error fixing) trackable. The code can be run repeatedly and will always produce the same results given the same inputs. The implementation in the form of program code further yields the advantage of inherently documenting the methodology. This leads to reproducible results which should be the basis for smart decision making.

Slides & further information: https://github.com/mrustl/useR-2016
Files (143.4 MB)
Name Size
Day2Siper120Speaker4Rustler_mid.mp4
md5:c432c16c4206df7ecc8fd64e746b587c
143.4 MB Download
  • Sonnenberg et al. 2014: Wrap your model! 11th International Conference on Hydroinformatics (HIC 2014), At New York City, USA, http://doi.org/10.13140/RG.2.1.2140.3683

34
3
views
downloads
All versions This version
Views 3434
Downloads 33
Data volume 430.1 MB430.1 MB
Unique views 3232
Unique downloads 33

Share

Cite as