Skip to contents

SWATtunR

Project Status: Active - The project has reached a stable, usable state and is being actively developed. License: MIT

The goal of SWATtunR is to help with the SWAT+ model calibration and validation. These functions were developed and tested for the implementation of modeling tasks in the OPTAIN project, Nordbalt-Ecosafe and LIFE SIP Vanduo. Functions are initially developed by Christoph Schuerz, which added important capability on top of other R tools designed for the SWAT/SWAT+ models. Therefore, we highly recommend trying and using these tools:

  • SWATbuildR1 - R tool for building SWAT+ setups;
  • SWATprepR - SWAT+ model input data preparation helper. The package is presented in the article Plunge, Szabó, et al. (2024);
  • SWATfarmR - R tool for preparing management schedules for SWAT model;
  • SWATdoctR - A collection of functions in R and routines for SWAT model calibration and model diagnostics. The package is presented in the article Plunge, Schürz, et al. (2024);
  • SWATrunR - R tool for running SWAT models for different parameters and scenarios. Please install branch names remove_legacy. It could be done using line like this remotes::install_github("chrisschuerz/SWATrunR@remove_legacy")
  • SWATmeasR2 - R tool for implementing Natural/Small Water Retention Measures (NSWRMs) in the SWAT+ models and running scenarios.

swativerse logo

Detailed information about packages, workflow steps, input data, SWAT+ parameters, model calibration, validation, etc., could be found in the SWAT+ modeling protocol Christoph et al. (2022).

Installation

You can install the development version of SWATtunR from GitHub.

# If the package 'remotes' is not installed run first:
install.packages("remotes")

# The installation of `SWATprepR`.
remotes::install_github("biopsichas/SWATtunR")

This work was carried out within the OPTAIN project (OPtimal strategies to retAIN and re-use water and nutrients in small agricultural catchments across different soil-climatic regions in Europe, cordis.europa.eu) which has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 862756 and the LIFE22-IPE-LT-LIFE-SIP-Vanduo project (Integrated water management in Lithuania, ref: LIFE22-IPE-LT-LIFE-SIPVanduo/ 101104645, cinea.ec.europa.eu), funded by the European Union LIFEprogram under the grant agreement No 101104645.

eu logoeu logo




References

Christoph, Schürz, Čerkasova Natalja, Farkas Csilla, Nemes Attila, Plunge Svajunas, Strauch Michael, Szabó Brigitta, and Piniewski Mikołaj. 2022. “SWAT+ modeling protocol for the assessment of water and nutrient retention measures in small agricultural catchments.” Zenodo. https://doi.org/10.5281/zenodo.7463395.
Plunge, Svajunas, Christoph Schürz, Natalja Čerkasova, Michael Strauch, and Mikołaj Piniewski. 2024. “SWAT+ model setup verification tool: SWATdoctR.” Environmental Modelling & Software 171: 105878. https://doi.org/10.1016/j.envsoft.2023.105878.
Plunge, Svajunas, Brigitta Szabó, Michael Strauch, Natalja Čerkasova, Christoph Schürz, and Mikołaj Piniewski. 2024. “SWAT + input data preparation in a scripted workflow: SWATprepR.” Environmental Sciences Europe 36 (1): 53. https://doi.org/10.1186/s12302-024-00873-1.