hydromodpy.data.variables.geology.processing#
Geology raster post-processing helpers.
These helpers are intentionally pure and side-effect free so they are easy to
unit-test and reuse from GeologyField.
Design intent#
The core FieldParam workflow expects:
- stable string zone keys (for parameter dictionaries),
- positive encoded classes on raster cells,
- optional post-processing hooks (land/sea overrides).
This module performs exactly those transformations.
Functions
|
Override geology classes where land/sea mask equals |
|
Build a stable class index column from zone keys for plotting/analysis. |
|
Encode a numeric raster to positive integer classes. |
|
Normalize one raw geology code into a stable string key. |
|
Optionally assign one uniform zone key to sea polygons in a GeoDataFrame. |