EvaluationStage#
- class rojak.orchestrator.turbulence.EvaluationStage(calibration_result, phases_config, domain, output_dir, plots_dir, name, start_time, image_format)[source]#
Runs the turbulence evaluation stage
For each configured
TurbulenceEvaluationPhaseOption, computes the corresponding result (probabilities, EDR, turbulent regions, or diagnostic correlation) from an evaluation dataset, using the thresholds/distribution parameters produced by the calibration stage where needed, and produces the corresponding plot(s). Seerun_phase().- Parameters:
calibration_result (Mapping[TurbulenceCalibrationPhaseOption, Result])
phases_config (TurbulenceEvaluationPhases)
domain (SpatialDomain)
output_dir (Path)
plots_dir (Path)
name (RunName)
start_time (TimeStr)
image_format (str)
- __init__(calibration_result, phases_config, domain, output_dir, plots_dir, name, start_time, image_format)[source]#
- Parameters:
calibration_result (Mapping[TurbulenceCalibrationPhaseOption, Result]) – Outcome of
CalibrationStage.launch(), providing thresholds/distribution parameters to evaluate withphases_config (TurbulenceEvaluationPhases) – Which evaluation phases to run, and their configuration
domain (SpatialDomain) – Spatial (and optionally vertical) domain to restrict evaluation data to
output_dir (Path) – Base directory to export zarr results into (a
namesubdirectory is created)plots_dir (Path) – Base directory to save plots into (a
namesubdirectory is created)name (RunName) – Name of this run, used to namespace exported files
start_time (TimeStr) – Timestamp identifying this run
image_format (str) – File format (e.g.
"png") to save plots as
- Return type:
None
Methods
__init__(calibration_result, phases_config, ...)create_diagnostic_suite(diagnostics, chunks)Load the evaluation data, compute
diagnosticsfrom it, and attach calibration resultslaunch(diagnostics, chunks)Run every configured evaluation phase
run_phase(phase, suite)Run a single evaluation phase against
suite, producing the corresponding plot(s) as a side effect