Developer Guide: global_time_series
This page describes how zi-global-time-series is implemented. For the
runtime parameters and output-facing behavior, see global_time_series.
Entry point and main flow
The CLI entry point is zppy_interfaces.global_time_series.__main__:main.
The implementation follows this sequence:
__main__._get_args()parses the command-line arguments and builds azppy_interfaces.global_time_series.utils.Parametersinstance.Parametersnormalizes booleans, region aliases, and comma-separated plot selections, then validates that the request is internally consistent.main()optionally callscreate_ocean_ts()when ocean-dependent classic plots are requested withuse_ocn=True.main()then callsrun_coupled_global().run_coupled_global()builds azppy_interfaces.global_time_series.coupled_global.utils.RequestedVariablesobject, generates the plots, and optionally creates viewer HTML output.
Key modules
zppy_interfaces/global_time_series/__main__.pycontains the CLI parser and the top-level control flow.zppy_interfaces/global_time_series/utils.pydefinesParametersand the request normalization logic.zppy_interfaces/global_time_series/create_ocean_ts.pycreates ocean support time series before plotting when needed.zppy_interfaces/global_time_series/coupled_global/driver.pycoordinates original plots, component plots, and viewer generation.zppy_interfaces/global_time_series/coupled_global/mode_pdf.pyassembles cumulative PDFs whenmake_viewer=False.zppy_interfaces/global_time_series/coupled_global/mode_viewer.pyand themix_viewer_*helpers build the viewer pages whenmake_viewer=True.
Developer notes
The classic plot names in
plots_originalare not the same thing as raw variable names, so the driver keeps them separate from the component-variable lists.Land plots depend on
zppy_land_fields.csvfor the accepted variable set, grouping metadata, units, and long names.The driver always writes output relative to
results_dir, and viewer mode adds HTML pages on top of the figure generation rather than replacing the underlying plot production.