hydromodpy.results.reading#

Variable read dispatch shared by hmp.read and Catalog.read.

One rule, three storage kinds (no lazy flag):

  • Zarr field -> xr.DataArray (lazy). When time is an int, the eager np.ndarray for that single timestep instead.

  • timeseries -> pd.Series.

  • geographic feature -> gpd.GeoDataFrame.

The dispatch lives in the results layer so both the functional facade (hydromodpy._api) and the catalog facade (hydromodpy.catalog.Catalog) reach it without crossing layers.

Functions

read_variable(run, var, *[, time, layer, ...])

Read var from run with storage-kind auto-dispatch.