Skip to content

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.

License

Notifications You must be signed in to change notification settings

swat-model/pySWATPlus

Repository files navigation

pySWATPlus

DOI PyPI - Version PyPI - Python Version PyPI - Status

flake8 mypy pytest codecov

GitHub last commit GitHub commit activity GitHub Repo stars GitHub forks GitHub Created At

Read the Docs Pepy Total Downloads PyPI - License

📦 About

pySWATPlus is an open-source Python package developed and maintained by ICRA. It provides a programmatic interface to the SWAT+ model, allowing users to run simulations, modify input files, and streamline custom experimentation through the model’s TxtInOut folder.

📥 Install pySWATPlus

To install from PyPI repository, run the following command:

pip install pySWATPlus

To Install from source code in editable mode, first create a Conda environment and then run the following command:

# Create and activate a Conda environment
conda create --name swatplus # Replace swatplus by your choice
conda activate swatplus

# Install required tools and clone the repository
pip install build
cd C:\Users\YourUsername\YourFolder  # 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 .

📚 Documentation

For a guide to setting up first SWAT+ project and other functionalities with examples, refere to the pySWATPlus documentation.

📖 Citation

To cite pySWATPlus, use:

@software{joan_salo_2025_16380058,
  author       = {Joan Saló and
                  Debasish Pal and
                  Oliu Llorente},
  title        = {swat-model/pySWATPlus: Release v1.0.1},
  month        = jul,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {v1.0.1},
  doi          = {10.5281/zenodo.16380058},
  url          = {https://doi.org/10.5281/zenodo.16380058},
  swhid        = {swh:1:dir:22ad2f4e620c3ef99bc62dd880cbc05c0be3c2b8
                   ;origin=https://doi.org/10.5281/zenodo.14889319;vi
                   sit=swh:1:snp:4dc18853eb47c828caa36afd324ab58c8c8c
                   02b2;anchor=swh:1:rel:c2e6bc6de431c7201ab6f484fc30
                   96b43cb5a90e;path=swat-model-pySWATPlus-022f59a
                  },
}

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages