Metadata-Version: 2.4
Name: hhemt
Version: 0.3.0
Summary: Tools for running and processing TRITON-SWMM models.
Author-email: Daniel Lassiter <daniel.lassiter@outlook.com>
Maintainer-email: Daniel Lassiter <daniel.lassiter@outlook.com>
License-Expression: AGPL-3.0-or-later
Project-URL: bugs, https://github.com/lassiterdc/hhemt/issues
Project-URL: changelog, https://github.com/lassiterdc/hhemt/blob/main/HISTORY.md
Project-URL: homepage, https://github.com/lassiterdc/hhemt
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Scientific/Engineering :: Hydrology
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: <3.13,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: filelock
Requires-Dist: pydantic==2.7.*
Requires-Dist: pyyaml
Requires-Dist: zarr>=3.1.4
Requires-Dist: netcdf4
Requires-Dist: h5netcdf
Requires-Dist: h5py
Requires-Dist: scipy
Requires-Dist: dask
Requires-Dist: matplotlib
Requires-Dist: seaborn
Requires-Dist: sparse
Requires-Dist: pint
Requires-Dist: bagit
Requires-Dist: openpyxl
Requires-Dist: rioxarray
Requires-Dist: geopandas
Requires-Dist: pyproj
Requires-Dist: shapely
Requires-Dist: hsclient
Requires-Dist: setuptools<78
Requires-Dist: requests>=2.25
Requires-Dist: pyswmm<2.2,>=2
Requires-Dist: swmm-toolkit<0.16,>=0.15.3
Requires-Dist: swmmio<0.8.3
Requires-Dist: tabulate
Requires-Dist: notebook
Requires-Dist: jupyter_server
Requires-Dist: ipywidgets
Requires-Dist: globus-sdk>=3.0
Requires-Dist: plotly==5.24.1
Requires-Dist: kaleido!=0.2.1.post1,<1.0,>=0.2.1
Requires-Dist: datashader>=0.16
Requires-Dist: jinja2>=3.1
Requires-Dist: typer<1,>=0.26
Requires-Dist: rich
Requires-Dist: snakemake==9.15.0
Requires-Dist: rocrate==0.15.0
Requires-Dist: xarray>=2026.2
Requires-Dist: pandas<3
Requires-Dist: numpy<2
Requires-Dist: packaging
Requires-Dist: rasterio
Requires-Dist: psutil
Requires-Dist: nbformat
Requires-Dist: affine
Requires-Dist: platformdirs
Requires-Dist: pydantic-core
Provides-Extra: test
Requires-Dist: ruff==0.15.17; extra == "test"
Requires-Dist: ty==0.0.49; extra == "test"
Requires-Dist: pytest<9.2,>=9; extra == "test"
Requires-Dist: pytest-xdist>=3.0; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: pre-commit; extra == "test"
Provides-Extra: hpc
Requires-Dist: snakemake-executor-plugin-slurm==2.1.0; extra == "hpc"
Requires-Dist: snakemake-executor-plugin-slurm-jobstep==0.4.0; extra == "hpc"
Requires-Dist: snakemake-storage-plugin-fs==1.1.3; extra == "hpc"
Provides-Extra: docs
Requires-Dist: mkdocs<2,>=1.6; extra == "docs"
Requires-Dist: mkdocs-material<10,>=9; extra == "docs"
Requires-Dist: mkdocstrings[python]<2,>=1; extra == "docs"
Requires-Dist: mkdocstrings-python<3,>=2; extra == "docs"
Requires-Dist: griffelib<3,>=2; extra == "docs"
Requires-Dist: mkdocs-htmlproofer-plugin<2,>=1; extra == "docs"
Requires-Dist: mkdocs-jupyter<0.28,>=0.26; extra == "docs"
Dynamic: license-file

# H&H Ensemble Modeling Toolkit, hhemt

[![PyPI version](https://img.shields.io/pypi/v/hhemt.svg)](https://pypi.org/project/hhemt/)
[![Documentation Status](https://readthedocs.org/projects/hhemt/badge/?version=latest)](https://hhemt.readthedocs.io/en/latest/?version=latest)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.21359151.svg)](https://doi.org/10.5281/zenodo.21359151)

**hhemt** orchestrates coupled TRITON-SWMM flood-ensemble simulations from a
single Python interface, on a local workstation and on HPC with NVIDIA and AMD
GPUs.

- **Lifecycle.** The workflow covers preprocessing, compilation, execution, processing, consolidation, and reporting.
- **Workflow engine.** Snakemake drives the workflow, with a SLURM executor for cluster execution.
- **Interactive analysis report** plus a **portable render-bundle** so results
  travel without the source tree.

* [PyPI](https://pypi.org/project/hhemt/)
* [Documentation](https://hhemt.readthedocs.io)
* [AGPL-3.0-or-later license](https://www.gnu.org/licenses/agpl-3.0.html)

## Installation

The full toolkit, including SWMM hydrology execution, is validated only against
the conda environment shipped in this repo, and that environment is the supported
install. [Installation](https://hhemt.readthedocs.io/en/latest/how-to/installation/) gives the commands, states why both
`--no-deps` steps are required inside a conda environment, and covers the pip-only route.

## Usage

```bash
hhemt --help                                              # every command
hhemt run --system-config CFG_SYS --analysis-config CFG_ANA --dry-run
```

An analysis is driven by a [*system*](https://hhemt.readthedocs.io/en/latest/reference/glossary/#system) config and an
[*analysis*](https://hhemt.readthedocs.io/en/latest/reference/glossary/#analysis) config. `--dry-run` checks both before anything
runs. The [CLI reference](https://hhemt.readthedocs.io/en/latest/reference/cli/#running-an-analysis) describes the flag.

Pick the row that matches the job:

| You want to | Start at |
|---|---|
| Get something running | [Quickstart](https://hhemt.readthedocs.io/en/latest/quickstart/) |
| Run simulations and explore results in Python | [Running a simulation interactively in Python](https://hhemt.readthedocs.io/en/latest/tutorials/interactive-python/) |
| Look up a config field | [Configuration schema](https://hhemt.readthedocs.io/en/latest/reference/config-schema/) |
| Look up a command | [CLI reference](https://hhemt.readthedocs.io/en/latest/reference/cli/) |
| Read the contents of the outputs | [Output data model](https://hhemt.readthedocs.io/en/latest/reference/output-data-model/) |
| Work out why an analysis failed | [Diagnosing a failed analysis](https://hhemt.readthedocs.io/en/latest/how-to/diagnosing-a-failed-run/) |
| Know where the toolkit stops | [Limitations](https://hhemt.readthedocs.io/en/latest/explanation/limitations/) |
| Contribute a change | [Contributing](https://hhemt.readthedocs.io/en/latest/contributing/) |

## Citation

If you use this software, cite the software through the Zenodo DOI. Citation metadata is
maintained in [`CITATION.cff`](CITATION.cff), and GitHub's "Cite this
repository" button reads that file.

**Cite the version you ran.** The [Citation](https://hhemt.readthedocs.io/en/latest/#how-to-cite) section of the
documentation explains the concept DOI and the version DOI.

### Cite the solver and the engine

Work that runs TRITON or SWMM through hhemt should also cite the solver and engine works in the following blocks.

``` { .text .copy }
Morales-Hernández, M., Sharif, M. B., Kalyanapu, A., Ghafoor, S. K., Dullo, T. T.,
Gangrade, S., Kao, S.-C., Norman, M. R., & Evans, K. J. (2021). TRITON: A multi-GPU
open source 2D hydrodynamic flood model. Environmental Modelling & Software, 141,
105034. https://doi.org/10.1016/j.envsoft.2021.105034
```

``` { .bibtex .copy }
@article{morales2021triton,
  author  = {Morales-Hern{\'a}ndez, M. and Sharif, M. B. and Kalyanapu, A. and Ghafoor, S. K. and Dullo, T. T. and Gangrade, S. and Kao, S.-C. and Norman, M. R. and Evans, K. J.},
  title   = {{TRITON}: A multi-{GPU} open source {2D} hydrodynamic flood model},
  journal = {Environmental Modelling \& Software},
  volume  = {141},
  pages   = {105034},
  year    = {2021},
  doi     = {10.1016/j.envsoft.2021.105034}
}
```

``` { .text .copy }
Rossman, L. A., & Simon, M. (2022). Storm Water Management Model user's manual
version 5.2 (EPA/600/R-22/030). U.S. Environmental Protection Agency.
```

``` { .bibtex .copy }
@manual{rossman2022swmm,
  author       = {Rossman, L. A. and Simon, M.},
  title        = {Storm Water Management Model User's Manual Version 5.2},
  organization = {U.S. Environmental Protection Agency},
  number       = {EPA/600/R-22/030},
  year         = {2022}
}
```
