PySWATPlus
pySWATPlus is a Python library tailored for seamless interaction with the Soil and Water Assessment Tool Plus (SWAT+), empowering users to efficiently manage input and output files within Python environments.
Install / Use
/learn @swat-model/PySWATPlusREADME
pySWATPlus
📦 About
pySWATPlus is an open-source Python package that provides a programmatic interface to the SWAT+ model, allowing users to run simulations and conduct custom experiments.
✨ Key Features
- Run
SWAT+simulations by modifying model parameters through thecalibration.calfile. - Evaluate model performance against observed data using widely recognized statistical indicators.
- Perform sensitivity analysis on model parameters using the
SALibPython package. - Calibrate model parameters through multi-objective optimization and evolutionary algorithms using the
pymooPython package. - Execute sensitivity analysis and model calibration through high-level interfaces with built-in parallel computation support.
- Analyze outputs from model simulations, sensitivity analyses, and calibrations.
📥 Install pySWATPlus
To install from PyPI repository:
pip install pySWATPlus
To install the latest development version from GitHub:
pip install git+https://github.com/swat-model/pySWATPlus.git
To install from source in editable mode within your desired conda environment:
# Activate your Conda environment
conda activate <environment_name>
# Install required tools and clone the repository
pip install build
cd C:\Users\Username\Folder # Replace with your actual path
git clone https://github.com/swat-model/pySWATPlus.git
cd pySWATPlus
# Build the package
python -m build
# Install in editable mode
pip install --editable .
✅ Verify Installation
The installation is successful if no error is raised when importing the module using the following command:
import pySWATPlus
📚 Documentation
For a guide to setting up first SWAT+ project and other functionalities with examples, refere to the pySWATPlus documentation.
📖 Citation
If you use pySWATPlus in your research, please cite it using the following concept DOI, which always points to the latest version:
@software{joan_salo_pyswatplus_latest,
author = {Joan Saló and
Debasish Pal and
Oliu Llorente},
title = {swat-model/pySWATPlus},
year = 2025,
publisher = {Zenodo},
doi = {10.5281/zenodo.14889319},
url = {https://doi.org/10.5281/zenodo.14889319},
note = {This DOI always points to the latest version of pySWATPlus.},
}
🙏 Acknowledgments
We acknowledge the University of Oulu and ICRA research center for their support and the collaborative environment that made this project possible.
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
