hydromodpy.results.zarr_store.zarr_reader#

Read-side concerns for SimulationZarr.

Owns every read_* entry point plus the root-attribute readers (geographic_fingerprint, resolve_geographic_dir, root_attrs_json) and the to_xarray() view builder.

All helpers take the live SimulationZarr so the module is free of hidden state.

Functions

get_geographic_fingerprint(store_obj)

Return the persisted geographic fingerprint, if any.

is_consolidated(store_obj)

Return True when .zmetadata consolidation is detectable on disk.

read_field(store_obj, variable, timestep, *)

Read one timestep slice of variable from subgroup (or auto).

read_forcing_timeseries(store_obj, variable, ...)

Read a per-station forcing timeseries plus its attribute dict.

read_geographic_raster(store_obj, name)

Read a per-run geographic raster and its georeferencing metadata.

resolve_geographic_dir(store_obj, workspace_path)

Resolve the workspace-level cache dir tied to this store's fingerprint.

root_attrs_json(store_obj)

Return the root attributes as a JSON string for debug / logs.

set_geographic_fingerprint(store_obj, value)

Set or clear the geographic fingerprint root attribute.

to_xarray(store_obj)

Return an xarray.Dataset view over the simulation fields.