hydromodpy.spatial.mesh.cartesian_grid.utils.raster_grid_reader#

Raster reading utilities for cartesian structured grids.

Why this component is extracted#

  • Isolate the rasterio dependency in one place.

  • Keep StructuredGridBuilder focused on deterministic numeric construction.

  • Simplify unit testing by making raster I/O replaceable with a dedicated adapter.

  • Reduce future migration cost if raster backend changes.

Classes

RasterGridReader()

Read 2D raster data and derive cartesian-grid metadata.

TopRasterGrid(top, delc, delr, xoff, yoff, ...)

Container for top-raster values and derived horizontal grid metadata.