hydromodpy.spatial.geographic.core.catchment_zones#

Build categorical zone rasters on geographic support.

Purpose#

Encode domain regions as integer classes so later model steps can apply zone-dependent rules (buffer ring, catchment core, outside domain, uniform).

Supported modes#

  1. catchment-based zoning from nested polygon supports,

  2. uniform zoning directly on DEM support (no buffer/catchment distinction).

Functions

build_catchment_zone_codes(*, catchment_shp, ...)

Rasterize catchment zones on the grid of a reference raster.

build_uniform_zone_codes(*, ...[, ...])

Build one uniform zone raster on the valid footprint of a reference DEM.

Classes

CatchmentZoneCode(value[, names, module, ...])

Discrete zone codes used in output rasters.

CatchmentZoneProducts(zone_codes[, ...])

In-memory zone matrix and optional persisted raster path.