From 2b35ffabff2c5d591b2bbcb0d900e21a792ce255 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Tue, 4 Aug 2020 09:17:10 +0200 Subject: [PATCH 1/2] Fix identation --- _episodes/05-preprocessor.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_episodes/05-preprocessor.md b/_episodes/05-preprocessor.md index 1cc8a30c..7c447170 100644 --- a/_episodes/05-preprocessor.md +++ b/_episodes/05-preprocessor.md @@ -256,11 +256,11 @@ 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 >> ``` >> From a6b556c426a483e6ae604a30e0bae9f02db5884e Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Tue, 4 Aug 2020 12:29:35 +0200 Subject: [PATCH 2/2] Link to complete recipe --- _episodes/05-preprocessor.md | 1 + data/recipe_example_multi_preprocessors.yml | 65 +++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 data/recipe_example_multi_preprocessors.yml diff --git a/_episodes/05-preprocessor.md b/_episodes/05-preprocessor.md index 7c447170..7d4e7bf6 100644 --- a/_episodes/05-preprocessor.md +++ b/_episodes/05-preprocessor.md @@ -264,6 +264,7 @@ specific preprocessor which should be applied. >> 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