Python package for mesoscale Hydrological Model
Project description
PymHM - Python Mesoscale Hydrological Model
A Python package for mesoscale hydrological modeling, designed to work both as a standalone library and as a QGIS plugin.
Features
- Hydrological Modeling: Core functionality for mesoscale hydrological processes
- QGIS Integration: Seamless integration with QGIS 3.0+ as a plugin
- Data Processing: Tools for handling hydrological data and model inputs
- Visualization: Built-in plotting and visualization capabilities
- Extensible: Modular design for easy extension and customization
Installation
From PyPI (Recommended)
pip install pymhm
From Source
git clone https://github.com/SanjeevBashyal/pymhm.git
cd pymhm
pip install -e .
For QGIS Plugin
- Download the plugin from the QGIS Plugin Manager
- Or install manually by copying the
pymhmfolder to your QGIS plugins directory
Quick Start
As a Python Package
import pymhm
# Initialize the model
model = pymhm.HydrologicalModel()
# Run simulation
results = model.run_simulation()
As a QGIS Plugin
- Open QGIS
- Go to Plugins → Manage and Install Plugins
- Search for "PymHM"
- Install and activate the plugin
- Access the plugin from the Plugins menu
Documentation
Requirements
- Python 3.8+
- NumPy >= 1.20.0
- SciPy >= 1.7.0
- Pandas >= 1.3.0
- For QGIS plugin: QGIS 3.0+
Development
Setting up Development Environment
git clone https://github.com/SanjeevBashyal/pymhm.git
cd pymhm
pip install -e .[dev]
Running Tests
pytest
Building Documentation
pip install -e .[docs]
sphinx-build -b html docs/ docs/_build/
Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the GNU General Public License v2.0 - see the LICENSE file for details.
Citation
If you use PymHM in your research, please cite:
@software{pymhm2025,
title={PymHM: Python Mesoscale Hydrological Model},
author={Sanjeev Bashyal},
year={2025},
url={https://github.com/SanjeevBashyal/pymhm},
version={0.1.0}
}
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: sanjeev.bashyal01@gmail.com
Changelog
See CHANGELOG.md for a list of changes and version history.
Acknowledgments
- QGIS Development Team for the excellent platform
- Python Scientific Community for the amazing tools
- Contributors and users of PymHM
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymhm-0.1.0.tar.gz.
File metadata
- Download URL: pymhm-0.1.0.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c61b3f7f31271e7eaf267a7b5e24b9465157ee1afac4bb8a47251f2670daa0f2
|
|
| MD5 |
ad6b2fe2598d75d2380a2ea30d447cfc
|
|
| BLAKE2b-256 |
b95a5a5cf8e03b71310001ed7c45dc900be5bd39176a79cd2ce407916b73b4c2
|
File details
Details for the file pymhm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pymhm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 60.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2befc32c38b7cd04566a9478fdd910cff3483f7b660a6ce2f8785d46e6370ad
|
|
| MD5 |
a5b41279547004901f13412acf348a7a
|
|
| BLAKE2b-256 |
7ef9af2367405286802a4ea81757ad3f3832b7542380d5f8ee9b7db19c468006
|