hydromodpy.spatial.mesh.cartesian_grid.sgrid_config#
Pydantic configuration model and TOML helpers for structured grid generation.
Design choices#
SGridConfigis the only validation entry point for grid settings.Runtime code receives a fully validated object and never re-validates business rules.
TOML/mapping loaders both normalize paths and produce the same model.
Module attributes
|
Discriminated union of bottom-surface generation methods. |
|
Discriminated union of vertical-layering methods. |
Functions
|
Load and validate SGrid configuration from TOML. |
|
Validate and normalize SGrid configuration mapping. |