GwdiModel
gwdi.GwdiModel()Container for GWDI model validation and computation logic.
Methods
| Name | Description |
|---|---|
| compute_gwdi | Compute GWDI output rows for all fid values in climate inputs. |
compute_gwdi
gwdi.GwdiModel.compute_gwdi(
df_precipitation,
df_evaporation,
info_locaties,
dict_models,
df_stats_minima,
)Compute GWDI output rows for all fid values in climate inputs.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| df_precipitation | pd.DataFrame | Precipitation input per time and fid. |
required |
| df_evaporation | pd.DataFrame | Evaporation input per time and fid. |
required |
| info_locaties | pd.DataFrame | Monitoring-location metadata with location and position. |
required |
| dict_models | dict[str, ps.model.Model] | Loaded Pastas models keyed as {location}_{position}_tarso. |
required |
| df_stats_minima | pd.DataFrame | Precomputed minima-statistics table per location. | required |
Returns
| Name | Type | Description |
|---|---|---|
| pd.DataFrame | GWDI rows in Toolbox processor output format. |
Raises
| Name | Type | Description |
|---|---|---|
| ValueError | If climate inputs are empty or inconsistent. | |
| RuntimeError | If no output rows are produced. |