Skip to content

Fixes indentation of solution of multiple preprocessors challenge #109

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

Merged
merged 2 commits into from
Aug 4, 2020
Merged
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
11 changes: 6 additions & 5 deletions _episodes/05-preprocessor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
65 changes: 65 additions & 0 deletions data/recipe_example_multi_preprocessors.yml
Original file line number Diff line number Diff line change
@@ -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