Environmental Sciences Europe (Mar 2024)

SWAT + input data preparation in a scripted workflow: SWATprepR

  • Svajunas Plunge,
  • Brigitta Szabó,
  • Michael Strauch,
  • Natalja Čerkasova,
  • Christoph Schürz,
  • Mikołaj Piniewski

DOI
https://doi.org/10.1186/s12302-024-00873-1
Journal volume & issue
Vol. 36, no. 1
pp. 1 – 15

Abstract

Read online

Abstract Input data collection, quality assurance and preparation are central but time_consuming steps in environmental modeling. Errors due to manual processing of model input data can result in an incorrect representation of an environmental system and may consequently lead to implausible model simulations. Correct input data preparation and thorough quality check at an early stage of the model setup procedure are essential to build confidence in model simulation results. Typically, in environmental model applications, many steps in the input data preparation phase have to be repeated with the inflow of new, additional or corrected data. In this study, we selected the widely used SWAT + ecohydrological model as an illustrative example to investigate challenges related to input data preparation. To assist in these tasks, we developed an R package named SWATprepR, which provides functions for typical and repeating SWAT + model input data preparation tasks. The package supports the preparation of weather input files, atmospheric deposition, soil parameters, crop rotations, and observed (control or calibration) data, to name a few, presently with focus on European applications. The SWATprepR functions are integrated in R script workflows and can help SWAT + modelers to avoid repetitive tasks, secure reproducibility and transparently document the data processing steps. Application of the package is illustrated with a test case of a SWAT + model for a small catchment in central Poland.

Keywords