hydromodpy.spatial.mesh.cartesian_grid.sgrid_field_discretization#

Field discretization on structured grids (any 2-D climatic variable).

Converts LoadResult field records (xarray, NetCDF, GeoTIFF) and located point records into per-cell 2-D arrays aligned with the MODFLOW structured grid.

Every public function is variable-agnostic and works with any LoadResult (recharge, precipitation, ETP, temperature, etc.).

Implementation details are split across: - _sgrid_field_grid_utils - cell centers, time bounds, units, interp, - _sgrid_field_xarray - xarray + NetCDF + GeoTIFF discretization, - _sgrid_field_points - located point time-series, - _sgrid_field_spatial_mean - homogeneous fallback series.

Functions

discretize_fields_on_sgrid(*, load_result, ...)

Discretize gridded FieldRecords onto a structured MODFLOW grid.

discretize_points_on_sgrid(*, load_result, ...)

Interpolate located PointRecords onto a structured MODFLOW grid.

spatial_mean_from_fields(load_result, *[, ...])

Compute the spatial mean of FieldRecords to produce a homogeneous series.