hydromodpy.results.exporters.hmp_package#
Portable .hmp package export / import (tar.zst + SHA-256 manifest).
A .hmp file is a single tar archive compressed with Zstandard,
containing:
manifest.json- archive header with the HydroModPy version that produced the archive, the simulation UUID, and a list of{path, size, sha256}entries covering every other file. The manifest is itself included in the archive undermanifest.json(its own sha256 is therefore omitted - checksums are verified against the other files).catalog_snapshot.duckdb- a one-simulation DuckDB snapshot containing thesimulationsrow plus per-sim data (parameters, timeseries, budgets, metrics, provenance, geographic features / metadata, tags, runs_environment).simulation.zarr.zip- the simulation’s Zarr store, packed to a deterministiczipfile (already BLOSC-compressed internally).geographic/(optional) - the workspace-level content-addressable raster cache materialised for the simulation’sgeographic_fingerprint, so the archive is self-contained on a fresh workspace.README.md- human-readable summary generated at export time.
The archive is reproducible: given the same inputs, the archive layout, file ordering and manifest are byte-identical, which makes SHA-256 checks meaningful for tamper detection.
Functions
|
Export a single simulation as a portable |
|
Import a |