Skip to content

Commit 21b781a

Browse files
authored
Merge pull request #780 from ESMValGroup/version2_more_complex_variable_definition
Example recipe for more complex variable definition
2 parents 8b0a59d + aa9fbe0 commit 21b781a

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

esmvaltool/recipes/examples/recipe_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation:
1111

1212
maintainer:
1313
- schl_ma
14-
14+
1515
references:
1616
- acknow_project
1717

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# recipe_variable_groups.yml
2+
---
3+
documentation:
4+
5+
description: |
6+
Example recipe to demonstrate grouping of variables in the diagnostic
7+
section.
8+
9+
authors:
10+
- schl_ma
11+
12+
maintainer:
13+
- schl_ma
14+
15+
projects:
16+
- crescendo
17+
18+
19+
preprocessors:
20+
21+
mask:
22+
mask_landsea:
23+
mask_out: sea
24+
25+
26+
ARBITRARY_YAML_ANCHOR: &datasets
27+
- {dataset: CanESM2}
28+
- {dataset: IPSL-CM5A-LR}
29+
- {dataset: MIROC5}
30+
- {dataset: MPI-ESM-LR}
31+
- {dataset: NorESM1-M}
32+
33+
34+
diagnostics:
35+
36+
diag_variable_groups:
37+
description: Demonstrate the use of variable groups.
38+
variables:
39+
tas_1: &variable_settings
40+
short_name: tas
41+
project: CMIP5
42+
mip: Amon
43+
field: T2Ms
44+
exp: historical
45+
ensemble: r1i1p1
46+
start_year: 2000
47+
end_year: 2005
48+
tag: TAS1
49+
additional_datasets: *datasets
50+
tas_2:
51+
<<: *variable_settings
52+
preprocessor: mask
53+
tag: TAS2
54+
additional_datasets:
55+
- {dataset: ERA-Interim, project: OBS, type: reanaly, version: 1, tier: 3}
56+
tas_3:
57+
<<: *variable_settings
58+
exp: rcp45
59+
start_year: 2020
60+
end_year: 2025
61+
tag: TAS3
62+
additional_datasets: *datasets
63+
scripts:
64+
null

0 commit comments

Comments
 (0)