gcpy.kpp.kppsa_quick_look

Creates a “quick-look” plot from KPP-Standalone box model output.

Command-line arguments

-d <str>, --dirname <str>

Folder containing KPP-Standalone output files.

[-l <str>, --label <str>]

Descriptive label used in the plot legend. Default: "KPP-Standalone output"

[-p <str>, --pattern <str>]

Glob pattern used to match KPP-Standalone log filenames.

[-s <str>, --species <str>]

Name of the species to plot.

Examples

$ conda activate gcpy_env
(gcpy_env) $ python -m gcpy.kpp.kppsa_quick_look    \
           --dirname /path/to/KPP-Standalone/output \
           --label   Rosenbrock                     \
           --pattern Beijing*20190701_0040.log      \
           --species O3

Functions

kppsa_make_quick_look_plot(file_list, label, ...)

Creates a quick-look plot from KPP-Standalone box model output.

main()

Parses command-line arguments and calls kppsa_make_quick_look_plot() to generate a quick-look plot from KPP-Standalone box model output.

gcpy.kpp.kppsa_quick_look.kppsa_make_quick_look_plot(file_list, label, species)[source]

Creates a quick-look plot from KPP-Standalone box model output.

The site name is determined automatically from the first unique site found in the data files. Only a single site is plotted.

Parameters:
  • file_list (list of str) – Paths to KPP-Standalone log files to be read.

  • label (str) – Descriptive label for the data, used in the plot legend.

  • species (str) – Name of the species to plot.

Notes

The plot is displayed interactively via matplotlib.pyplot.show(). The seaborn darkgrid style is applied during plotting and reset to default afterwards to avoid affecting other plotting scripts. The figure is landscape-oriented (11” × 8”).

gcpy.kpp.kppsa_quick_look.main()[source]

Parses command-line arguments and calls kppsa_make_quick_look_plot() to generate a quick-look plot from KPP-Standalone box model output.