gcpy.kpp.kppsa_plot_sites
Script to visualize output from the KPP standalone box model.
Command-line Arguments
- --refdir <str>
Folder containing KPP-Standalone output from the Ref model.
- [--reflabel <str>]
Plot label for the Ref model. Default:
"Ref"
- --devdir <str>
Folder containing KPP-Standalone output from the Dev model.
- [--devlabel <str>]
Plot label for the Dev model. Default:
"Dev"
- [--pattern <str>]
Glob pattern used to match KPP-Standalone log filenames.
- --species <str>
Name of the species to plot.
- [--pdfname <str>]
Name of the PDF file to be created. Default:
"kppsa_output.pdf"
- raises ValueError:
If no Ref files matching
--patternare found in--refdir.- raises ValueError:
If no Dev files matching
--patternare found in--devdir.
Example
$ conda activate gcpy_env
(gcpy_env) $ python -m gcpy.kpp.kppsa_plot_sites \
--refdir /path/to/KPP-Standalone/Ref/log/files \
--reflabel Rosenbrock \
--devdir /path/to/KPP-Standalone/Dev/log/files \
--devlabel Backwards Euler \
--pattern 20190701_0040.log \
--species O3 \
--pdfname KPP-Standalone-O3-20190701-0040.pdf
Functions
|
Creates vertical profile plots of a given species from KPP-Standalone box model output. |
|
Parses command-line arguments and calls |
- gcpy.kpp.kppsa_plot_sites.kppsa_plot_species_at_sites(ref_file_list, ref_label, dev_file_list, dev_label, species, pdfname)[source]
Creates vertical profile plots of a given species from KPP-Standalone box model output.
- Parameters:
ref_file_list (
listofstr) – Paths to KPP-Standalone log files for theRefversion.ref_label (
str) – Descriptive label for theRefversion, used in plot titles and legends.dev_file_list (
listofstr) – Paths to KPP-Standalone log files for theDevversion.dev_label (
str) – Descriptive label for theDevversion, used in plot titles and legends.species (
str) – Name of the species to plot.pdfname (
str) – Path and name of the output PDF file. A.pdfextension will be appended if not already present.
Notes
Sites are sorted from north to south. Plots are arranged
3 rows × 2 columnsper page. The seaborndarkgridstyle is applied during plotting and reset todefaultafterwards to avoid affecting other plotting scripts.
- gcpy.kpp.kppsa_plot_sites.main()[source]
Parses command-line arguments and calls
kppsa_plot_species_at_sites().