diff --git a/_episodes/05-preprocessor.md b/_episodes/05-preprocessor.md index 1cc8a30c..7d4e7bf6 100644 --- a/_episodes/05-preprocessor.md +++ b/_episodes/05-preprocessor.md @@ -256,14 +256,15 @@ specific preprocessor which should be applied. >> description: #preprocess a variable for a 2D land only plot >> variables: >> tas: # surface temperature ->> preprocessor: prep_map_land ->> mip: Amon ->> grid: gn #can change for variables from the same model ->> start_year: 1970 ->> end_year: 2000 +>> preprocessor: prep_map_land +>> mip: Amon +>> grid: gn #can change for variables from the same model +>> start_year: 1970 +>> end_year: 2000 >> scripts: null >> ``` >> +>> Complete recipe can be downloaded [here](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_multi_preprocessors.yml). > {: .solution} {: .challenge} diff --git a/data/recipe_example_multi_preprocessors.yml b/data/recipe_example_multi_preprocessors.yml new file mode 100644 index 00000000..e65d6c16 --- /dev/null +++ b/data/recipe_example_multi_preprocessors.yml @@ -0,0 +1,65 @@ +# ESMValTool +# recipe_example.yml +--- +documentation: + description: Demonstrate basic ESMValTool example + + authors: + - demora_lee + - mueller_benjamin + - swaminathan_ranjini + + maintainer: + - demora_lee + + references: + - demora2018gmd + # Some plots also appear in ESMValTool paper 2. + + projects: + - ukesm + +datasets: + - {dataset: UKESM1-0-LL, project: CMIP6, exp: historical, + ensemble: r1i1p1f2} #single dataset as an example + +preprocessors: + prep_map: + regrid: #apply the preprocessor to regrid + target_grid: 1x1 # target resolution + scheme: linear #how to interpolate for regridding + + prep_map_land: + custom_order: true #ensure that given order of preprocessing is followed + mask_landsea: #apply a mask + mask_out: sea #mask out sea grid cells + regrid: # now apply the preprocessor to regrid + target_grid: 1x1 # target resolution + scheme: linear #how to interpolate for regridding + +diagnostics: + # -------------------------------------------------- + # Two Simple diagnostics that illustrate the use of + # different preprocessors + # -------------------------------------------------- + diag_simple_plot: + description: # preprocess a variable for a simple 2D plot + variables: + tas: # surface temperature + preprocessor: prep_map + mip: Amon + grid: gn #can change for variables from the same model + start_year: 1970 + end_year: 2000 + scripts: null + + diag_land_only_plot: + description: #preprocess a variable for a 2D land only plot + variables: + tas: # surface temperature + preprocessor: prep_map_land + mip: Amon + grid: gn #can change for variables from the same model + start_year: 1970 + end_year: 2000 + scripts: null