pySWATPlus is a Python package that makes working with SWAT+ models easier and more powerful. Whether you're running default setups or custom projects, this tool lets you interact with SWAT+ programmatically, so you can focus on optimizing and analyzing your models like a pro! 🚀
- Access and Modify SWAT+ Files: Navigate, read, modify, and write files in the
TxtInOut
folder used by SWAT+. 📂 - Model Calibration: Optimize SWAT+ input parameters using the Pymoo optimization framework to get the best results. 🎯
pySWATPlus is an open-source software developed and maintained by ICRA. It’s available for download and installation via PyPI.
Before installing pySWATPlus, make sure you have the following dependencies installed:
pip install pandas numpy pymoo tqdm dask
To use this package, a Python version above 3.6 is required.
Once the dependencies are installed, you can install pySWATPlus using this simple command:
pip install pySWATPlus
For detailed documentation, tutorials, and examples, visit the pySWATPlus documentation. The documentation includes:
- Getting Started: A beginner-friendly guide to setting up and running your first SWAT+ project.
- API Reference: Comprehensive documentation of all functions, input arguments, and usage examples.
- TxtinoutReader: Work with SWAT+ input and output files.
- FileReader: Read and manipulate SWAT+ files.
- SWATProblem: Define and solve SWAT+ optimization problems.
- SWATProblemMultimodel: Handle multi-model calibration scenarios.
To cite pySWATPlus, use:
@misc{Salo_Llorente_2023,
author = {Saló, Joan and Llorente, Oliu},
title = {{pySWATPlus: A Python Interface for SWAT+ Model Calibration and Analysis}},
year = {2023},
month = dec,
publisher = {Zenodo},
version = {0.1.0},
doi = {10.5281/zenodo.14889320},
url = {https://doi.org/10.5281/zenodo.14889320}
}