hydromodpy.data.schemas.dem#

Contract for DEM rasters (DEMs are not DataFrames, hence a custom check).

The contract is intentionally light: it asserts that the payload is a 2D grid with a declared CRS and a resolution no finer than 1 metre. The underlying storage format (xarray, rasterio, numpy) is not prescribed - we accept any object exposing the attributes we need.

Functions

validate_dem(dem[, contract, context])

Validate a DEM against contract.

Classes

DEMContract([min_resolution_m, ...])

Declarative constraints for a digital elevation model.