Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit conversion to DU to recipes that use toz #3784

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions esmvaltool/recipes/recipe_eyring06jgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ datasets:
- {dataset: MIROC-ESM, project: CMIP5, exp: historical, ensemble: r1i1p1,
start_year: 1980, end_year: 2005}
- {dataset: MIROC-ESM-CHEM, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1960, end_year: 2005}
ensemble: r1i1p1, start_year: 1960, end_year: 2005}
- {dataset: MPI-ESM-LR, project: CMIP5, exp: historical, ensemble: r1i1p1,
start_year: 1980, end_year: 2005}
- {dataset: MPI-ESM-MR, project: CMIP5, exp: historical, ensemble: r1i1p1,
Expand All @@ -84,13 +84,13 @@ preprocessors:
target_grid: reference_dataset
scheme: linear
zonal_statistics:
operator: mean
operator: mean

regrid_interp_lev_zonal_o3:
<<: *regrid_and_zonal_preproc
convert_units:
units: ppmv
units: ppmv

# zonal mean
zonal: &zonal_preproc
regrid:
Expand All @@ -104,8 +104,8 @@ preprocessors:
zonal_o3_du:
<<: *zonal_preproc
convert_units:
units: DU
units: DU


diagnostics:

Expand All @@ -127,39 +127,39 @@ diagnostics:
reference_dataset: ERA-Interim
mip: Amon
additional_datasets:
- {dataset: ACCESS1-0, project: CMIP5, exp: historical,
- {dataset: ACCESS1-0, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: ACCESS1-3, project: CMIP5, exp: historical,
- {dataset: ACCESS1-3, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: CESM1-BGC, project: CMIP5, exp: historical,
- {dataset: CESM1-BGC, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: CESM1-CAM5, project: CMIP5, exp: historical,
- {dataset: CESM1-CAM5, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: CMCC-CESM, project: CMIP5, exp: historical,
- {dataset: CMCC-CESM, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: CMCC-CM, project: CMIP5, exp: historical,
- {dataset: CMCC-CM, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: CMCC-CMS, project: CMIP5, exp: historical,
- {dataset: CMCC-CMS, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: GISS-E2-H-CC, project: CMIP5, exp: historical,
- {dataset: GISS-E2-H-CC, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: GISS-E2-H, project: CMIP5, exp: historical,
- {dataset: GISS-E2-H, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: GISS-E2-R-CC, project: CMIP5, exp: historical,
- {dataset: GISS-E2-R-CC, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: GISS-E2-R, project: CMIP5, exp: historical,
- {dataset: GISS-E2-R, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: HadGEM2-CC, project: CMIP5, exp: historical,
- {dataset: HadGEM2-CC, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: HadGEM2-ES, project: CMIP5, exp: historical,
- {dataset: HadGEM2-ES, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: inmcm4, project: CMIP5, exp: historical,
- {dataset: inmcm4, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: MRI-CGCM3, project: CMIP5, exp: historical,
- {dataset: MRI-CGCM3, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: NorESM1-M, project: CMIP5, exp: historical,
- {dataset: NorESM1-M, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: NorESM1-ME, project: CMIP5, exp: historical,
- {dataset: NorESM1-ME, project: CMIP5, exp: historical,
ensemble: r1i1p1, start_year: 1980, end_year: 2005}
- {dataset: ERA-Interim, project: OBS6, type: reanaly, version: 1,
start_year: 1980, end_year: 1999, tier: 3}
Expand Down Expand Up @@ -271,7 +271,7 @@ diagnostics:
YMax: [5., 5.]
# Climatology time period
start_year: 1991
end_year: 2002
end_year: 2002
# Calculate multimodel mean?
multimean: True

Expand Down Expand Up @@ -306,7 +306,7 @@ diagnostics:
styleset: CMIP5
# Minimum latitude for region selection
latmin: [60., -90., -90.]
# Maximum latitude for region selection
# Maximum latitude for region selection
latmax: [90., -60., 90.]
# Time average
season: ['FMA', 'SON', 'ANN']
Expand Down
15 changes: 14 additions & 1 deletion esmvaltool/recipes/recipe_perfmetrics_CMIP5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,19 @@ preprocessors:
statistics: [mean, median]
exclude: [reference_dataset, alternative_dataset]

ppNOLEV2thr10_o3:
regrid:
target_grid: reference_dataset
scheme: linear
mask_fillvalues:
threshold_fraction: 0.10
multi_model_statistics:
span: overlap
statistics: [mean, median]
exclude: [reference_dataset, alternative_dataset]
convert_units:
units: DU

ppNOLEV1x1:
regrid:
target_grid: 1x1
Expand Down Expand Up @@ -1896,7 +1909,7 @@ diagnostics:
- atmosChem
variables:
toz:
preprocessor: ppNOLEV2thr10
preprocessor: ppNOLEV2thr10_o3
reference_dataset: ESACCI-OZONE
alternative_dataset: NIWA-BS
mip: Amon
Expand Down
2 changes: 1 addition & 1 deletion esmvaltool/recipes/recipe_perfmetrics_CMIP5_4cds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,7 @@ diagnostics:
# - atmosChem
# variables:
# toz:
# preprocessor: ppNOLEV2thr10
# preprocessor: ppNOLEV2thr10 # TODO: add convert_units preprocessor (to DU)
# reference_dataset: ESACCI-OZONE
# alternative_dataset: NIWA-BS
# mip: Amon
Expand Down