hydromodpy.display.png_metadata#

PNG metadata helpers (tEXt chunks via Pillow).

Embeds provenance info into every PNG saved by HydroModPy figures so a moved or detached image still carries its sim_id, field, time, crs_epsg and the runtime version. Readers can inspect the chunks via PIL.Image.open(path).info.

Functions

read_png_metadata(path)

Return the tEXt chunks stored in the PNG at path.

write_png_with_metadata(fig_or_array, path, *)

Save fig_or_array as a PNG with embedded provenance metadata.