Developer Guide: pcmdi_diags
This page describes how the PCMDI-related CLI entry points are implemented. For the runtime parameters and command behavior, see pcmdi_diags.
Implementation map
The PCMDI interface is split across several CLI entry points:
link_observation.pyhandles observation discovery, linking, and limited derived-variable generation.pcmdi_mean_cimate.pyruns mean-climate diagnostics and reorganizes the resulting outputs.pcmdi_variability_modes.pyruns variability-mode diagnostics and collects the resulting files.pcmdi_enso.pydefines the intended ENSO interface, butmain()still exits early because the command is not yet supported.pcmdi_synthetic_plots.pybuilds summary plots and the combined viewer pages from prior diagnostics output.
Command-specific flows
Mean climate
Parse arguments and run the shared setup.
Save
regions.jsonfor variable-to-region mapping.Build one
mean_climate_driver.pycommand per supported variable.Execute those commands in serial or parallel mode.
Use
MeanClimateMetricsCollectorto move figures, metrics JSON files, and NetCDF diagnostics into theresults_dirstructure expected by later stages.
Variability modes
Parse arguments and run the shared setup.
Build one
variability_modes_driver.pycommand per requested mode.Execute those commands in serial or parallel mode.
Reorganize graphics, metrics, and diagnostics into the structured output tree used by the viewer layer.
Synthetic plots and viewer
Parse
SyntheticPlotsParametersinpcmdi_synthetic_plots.py.Read
synthetic_metrics_list.jsonand generate summary figures throughSyntheticMetricsPlotter.Build the viewer configuration with helper functions from
zppy_interfaces.pcmdi_diags.viewer.Write the methodology, data, and viewer HTML pages under
web_dir/results_dir/viewer.