compute_and_export_ensemble_edr#

rojak.orchestrator.lite_controller.compute_and_export_ensemble_edr(context, /, diagnostics_from)[source]#

Convert every diagnostic configured in context into EDR and export the ensemble-mean result

Implements rojak lite turbulence export-ensemble-edr (rojak.cli.lite_interface.export_ensemble_edr()). Distribution parameters are loaded from context.load_from (see load_distribution_parameters_from_file(), produced by compute_distribution_parameters()); each diagnostic is converted to EDR using those parameters together with the TWENTIES_CLIMATOLOGICAL_PARAMETER climatological scaling constants, then averaged across diagnostics (MEAN) to give a single ensemble EDR, written to context.output_dir.

Parameters:
  • context (TurbulenceContextWithAdditionalPath) – Configuration listing the diagnostics to convert, the distribution parameters file to load, and where to read diagnostics from/write the result to

  • diagnostics_from (DiagnosticsFormat) – Where to obtain each diagnostic’s value from

Return type:

None