Skip to content

Commit 7a583b5

Browse files
committed
replace the recipe code-snippet with text
1 parent f684a80 commit 7a583b5

File tree

1 file changed

+26
-40
lines changed

1 file changed

+26
-40
lines changed

_episodes/05-preprocessor.md

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -193,48 +193,34 @@ specific preprocessor which should be applied.
193193
>you perform the masking first before regridding (hint: custom order your
194194
>operations). Now, use the two preprocessors in different diagnostics within the
195195
>same recipe. You may use any variable(s) of your choice. Once you succeed, try
196-
>to add new datasets to the same recipe. Placeholders for the different
197-
>components are provided below:
196+
>to add new datasets to the same recipe.
198197
>
199-
>> ## Recipe
200-
>>
201-
>> ```yaml
202-
>>
203-
>> datasets:
204-
>> - {dataset: HadGEM2-ES, project: CMIP5, exp: historical, mip: Omon, ensemble: r1i1p1, start_year: 1900, end_year: 2000}
205-
>>
206-
>> preprocessors:
207-
>> prep_map: # preprocessor to just regrid data
208-
>> # fill preprocessor details here
209-
>>
210-
>> prep_map_land: # preprocessor to mask grid cells and then regrid
211-
>> # fill preprocessor details here including ordering
212-
>>
213-
>> diagnostics:
214-
>> # --------------------------------------------------
215-
>> # Two Simple diagnostics that illustrate the use of
216-
>> # different preprocessors
217-
>> # --------------------------------------------------
218-
>> diag_simple_plot:
219-
>> description: # preprocess a variable for a simple 2D plot
220-
>> variables:
221-
>> # put your variable of choice here
222-
>> # apply the first preprocessor i.e. name your preprocessor
223-
>> # edit the following 4 lines for mip, grid and time
224-
>> # based on your variable choice
225-
>> scripts: null # no scripts called
226-
>> diag_land_only_plot: # second diagnostic
227-
>> description: # preprocess a variable for a 2D land only plot
228-
>> variables:
229-
>> # include a variable and information
230-
>> # as in the previous diagnostic and
231-
>> # include your second preprocessor (masking and regridding)
232-
>> scripts: null # no scripts
233-
>> ```
234-
>>
235-
>{: .solution}
198+
> To complete this exercise, we need to change the following sections in the recipe:
199+
>
200+
> - `preprocessors`:
201+
> - `prep_map`: add a preprocessor to regrid data
202+
> - fill preprocessor details here
203+
>
204+
> - `prep_map_land`: add a preprocessor to mask grid cells and then regrid
205+
> - fill preprocessor details here including ordering
206+
>
207+
> - `diag_simple_plot`:
208+
> - `description`: preprocess a variable for a simple 2D plot
209+
> - `variables`:
210+
> - put your variable of choice here
211+
> - edit mip, and time based on your variable choice
212+
> - apply the first preprocessor i.e. name your preprocessor
236213
>
237-
>> ## Solution:
214+
> - `scripts`: `null` it means that no scripts called.
215+
>
216+
> - `diag_land_only_plot`: second diagnostic
217+
> - `description`: preprocess a variable for a 2D land only plot
218+
> - ``variables``:
219+
> - include a variable and information as in the previous diagnostic
220+
> - include your second preprocessor (masking and regridding)
221+
> - `scripts`: `null` it means that no scripts called.
222+
>
223+
>> ## Solution
238224
>>
239225
>> Here is one solution to complete the challenge above using two different
240226
>> preprocessors:

0 commit comments

Comments
 (0)