Skip to content

Commit a6b556c

Browse files
committed
Link to complete recipe
1 parent 2b35ffa commit a6b556c

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

_episodes/05-preprocessor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ specific preprocessor which should be applied.
264264
>> scripts: null
265265
>> ```
266266
>>
267+
>> Complete recipe can be downloaded [here](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_multi_preprocessors.yml).
267268
> {: .solution}
268269
{: .challenge}
269270

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# ESMValTool
2+
# recipe_example.yml
3+
---
4+
documentation:
5+
description: Demonstrate basic ESMValTool example
6+
7+
authors:
8+
- demora_lee
9+
- mueller_benjamin
10+
- swaminathan_ranjini
11+
12+
maintainer:
13+
- demora_lee
14+
15+
references:
16+
- demora2018gmd
17+
# Some plots also appear in ESMValTool paper 2.
18+
19+
projects:
20+
- ukesm
21+
22+
datasets:
23+
- {dataset: UKESM1-0-LL, project: CMIP6, exp: historical,
24+
ensemble: r1i1p1f2} #single dataset as an example
25+
26+
preprocessors:
27+
prep_map:
28+
regrid: #apply the preprocessor to regrid
29+
target_grid: 1x1 # target resolution
30+
scheme: linear #how to interpolate for regridding
31+
32+
prep_map_land:
33+
custom_order: true #ensure that given order of preprocessing is followed
34+
mask_landsea: #apply a mask
35+
mask_out: sea #mask out sea grid cells
36+
regrid: # now apply the preprocessor to regrid
37+
target_grid: 1x1 # target resolution
38+
scheme: linear #how to interpolate for regridding
39+
40+
diagnostics:
41+
# --------------------------------------------------
42+
# Two Simple diagnostics that illustrate the use of
43+
# different preprocessors
44+
# --------------------------------------------------
45+
diag_simple_plot:
46+
description: # preprocess a variable for a simple 2D plot
47+
variables:
48+
tas: # surface temperature
49+
preprocessor: prep_map
50+
mip: Amon
51+
grid: gn #can change for variables from the same model
52+
start_year: 1970
53+
end_year: 2000
54+
scripts: null
55+
56+
diag_land_only_plot:
57+
description: #preprocess a variable for a 2D land only plot
58+
variables:
59+
tas: # surface temperature
60+
preprocessor: prep_map_land
61+
mip: Amon
62+
grid: gn #can change for variables from the same model
63+
start_year: 1970
64+
end_year: 2000
65+
scripts: null

0 commit comments

Comments
 (0)