gcpy.examples.diagnostics.check_gchp_emission_diags
Compares GCHP emission diagnostic entries in HISTORY.rc and in HEMCO_Diagn.rc configuration files for consistency.
Examples
$ conda activate gcpy_env
(gcpy_env) $ python -m gcpy.examples.diagnostics.check_gchp_emission_diags \
/path/to/GCHP/run/directory \
SIMULATION-NAME
Functions
|
Compares the list of GCHP emission entries in HISTORY.rc and HEMCO_Diagn.rc. |
|
Main program. |
|
Prints the results of the comparison between HISTORY.rc and HEMCO_Diagn.rc. |
|
Reads the HEMCO_Diagn.rc file and returns a list of diagnostic container names containing "Emis" or "Inv". |
|
Reads the HISTORY_Diagn.rc file and returns a list of diagnostic container names containing "Emis" or "Inv". |
- gcpy.examples.diagnostics.check_gchp_emission_diags.read_history(filename)[source]
Reads the HISTORY_Diagn.rc file and returns a list of diagnostic container names containing “Emis” or “Inv”.
- gcpy.examples.diagnostics.check_gchp_emission_diags.read_hemco_diagn(filename)[source]
Reads the HEMCO_Diagn.rc file and returns a list of diagnostic container names containing “Emis” or “Inv”.
- gcpy.examples.diagnostics.check_gchp_emission_diags.compare_containers(history_entries, hco_diagn_entries)[source]
Compares the list of GCHP emission entries in HISTORY.rc and HEMCO_Diagn.rc. Returns the list of entries common to both, and in one file but not the other.
- gcpy.examples.diagnostics.check_gchp_emission_diags.print_results(result)[source]
Prints the results of the comparison between HISTORY.rc and HEMCO_Diagn.rc.
- Parameters:
result (
dict) – Dictionary with results of the comparison.