iwfm.diagnosticsΒΆ
Process IWFM Simulation diagnostic output files.
Reads IWFM HDF5 diagnostic output (convergence, residuals, element mass balance, stream flows) and PEST state, assembles them into a diagnostic bundle, and supports an LLM-supervised outer calibration loop.
Modules
|
Assemble a complete DiagnosticBundle from HDF5 files and PEST state. |
|
Assign each non-representative node to its nearest representative. |
|
Extract trouble timesteps from ConvergenceSummary. |
|
Identify elements with residuals far above the layer mean. |
|
Identify parameters within a percentage of their bounds. |
|
Identify nodes with persistently high residuals. |
|
Extract anomalous stream nodes from StreamSummary. |
Dataclass definitions for IWFM diagnostic bundle. |
|
|
Post-iteration callback for LLM-supervised PEST. |
LLM Supervisor for IWFM/PEST calibration. |
|
Read IWFM model geometry files for node/element coordinates. |
|
|
Read Diagnostics_Convergence.hdf and compute summary statistics. |
|
Read Diagnostics_ElemMB.hdf and compute summary statistics. |
|
Parse PEST .sen file and return parameter sensitivities. |
|
Read PEST iteration state and return PestStateSummary. |
|
Read Diagnostics_Residual.hdf using chunked access. |
|
Read Diagnostics_Stream.hdf and compute summary statistics. |
|
Select representative nodes for PEST parameter estimation. |
|
Convert DiagnosticBundle to compact JSON string. |
|
Create a clean PEST run folder from a reference run directory. |
Lightweight diagnostic capture during PEST Jacobian perturbation runs. |
|
|
Generate parameter selection recommendations from diagnostic data. |
|
Write a new .pst file applying parameter selection recommendations. |