gcpy.benchmark.modules.budget_ox
Computes the budget of Ox from 1-year GEOS-Chem Classic or GCHP benchmark simulations.
Functions
|
|
|
|
|
|
|
Computes the following terms: |
|
Main program to compute Ox budgets from GEOS-Chem Classic or GCHP benchmark simulations. |
|
Computes global species mass from the initial & final restart files. |
|
Prints the trop+strat budget file. |
- gcpy.benchmark.modules.budget_ox.init_and_final_mass(globvars, species)[source]
Computes global species mass from the initial & final restart files.
- gcpy.benchmark.modules.budget_ox.annual_average_prodloss(globvars)[source]
- Parameters:
globvars (
_GlobVars) – Global variables needed for budget computations.- Returns:
result – Contains annual monthly-weighted average of Prod_Ox and Loss_Ox.
- Return type:
- gcpy.benchmark.modules.budget_ox.annual_average_drydep(globvars)[source]
- Parameters:
globvars (
_GlobVars) – Global variables needed for budget computations.- Returns:
result – Annual average dry deposition [Tg Ox].
- Return type:
- gcpy.benchmark.modules.budget_ox.annual_average_wetdep(globvars)[source]
- Parameters:
globvars (
_GlobVars) – Global variables needed for budget computations.- Returns:
result – Annual average wet deposition [Tg Ox], with keys “CV” (convective), “LS” (large-scale), and “Total”.
- Return type:
- gcpy.benchmark.modules.budget_ox.annual_metrics(globvars, mass, prodloss, wetdep, drydep)[source]
Computes the following terms:
“dyn”: Ox subsiding from the stratosphere
“net”: Net Ox = (POx-LOx) + Dyn - Drydep - Wetdep
“life”: Ox lifetime (d) = Ox burden / (LOx + Drydep + Wetdep)
- Parameters:
- Returns:
result – Contains dyn, net, and life terms.
- Return type:
- gcpy.benchmark.modules.budget_ox.print_budget(globvars, mass, prodloss, wetdep, drydep, metrics)[source]
Prints the trop+strat budget file.
- gcpy.benchmark.modules.budget_ox.global_ox_budget(devstr, devdir, devrstdir, year, spcdb_file, dst='./1yr_benchmark', overwrite=True, is_gchp=False, gchp_res='c24', gchp_is_pre_14_0=False)[source]
Main program to compute Ox budgets from GEOS-Chem Classic or GCHP benchmark simulations.
- Parameters:
devstr (
str) – Label for the Dev version.devdir (
str) – Path to the Dev data directory.devrstdir (
str) – Path to the Dev restart file directory.year (
int) – Year of the benchmark simulation.spcdb_file (
str) – Path to the Dev species_database.yml file.dst (
str, optional) – Directory where tables will be written.overwrite (
bool, optional) – Should existing tables be overwritten?is_gchp (
bool, optional) – Is Dev from a GCHP benchmark simulation?gchp_res (
str, optional) – GCHP resolution string (e.g. “c24”).gchp_is_pre_14_0 (
bool, optional) – Is Dev from a GCHP version prior to 14.0.0?