@@ -130,6 +130,12 @@ and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
130130> # ESMValTool
131131> # recipe_python.yml
132132> ---
133+ > # See https://docs.esmvaltool.org/en/latest/recipes/recipe_examples.html
134+ > # for a description of this recipe.
135+ >
136+ > # See https://docs.esmvaltool.org/projects/esmvalcore/en/latest/recipe/overview.html
137+ > # for a description of the recipe format.
138+ > ---
133139> documentation:
134140> description: |
135141> Example recipe that plots a map and timeseries of temperature.
@@ -152,33 +158,36 @@ and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
152158>
153159> datasets:
154160> - {dataset: BCC-ESM1, project: CMIP6, exp: historical, ensemble: r1i1p1f1, grid: gn}
155- > - {dataset: CanESM2 , project: CMIP5, exp: historical, ensemble: r1i1p1}
161+ > - {dataset: bcc-csm1-1, version: v1 , project: CMIP5, exp: historical, ensemble: r1i1p1}
156162>
157163> preprocessors:
164+ > # See https://docs.esmvaltool.org/projects/esmvalcore/en/latest/recipe/preprocessor.html
165+ > # for a description of the preprocessor functions.
158166>
159- > select_january :
160- > extract_month :
161- > month: 1
167+ > to_degrees_c :
168+ > convert_units :
169+ > units: degrees_C
162170>
163171> annual_mean_amsterdam:
164- > extract_point:
165- > latitude: 52.379189
166- > longitude: 4.899431
172+ > extract_location:
173+ > location: Amsterdam
167174> scheme: linear
168175> annual_statistics:
169176> operator: mean
170177> multi_model_statistics:
171178> statistics:
172179> - mean
173180> span: overlap
181+ > convert_units:
182+ > units: degrees_C
174183>
175184> annual_mean_global:
176185> area_statistics:
177186> operator: mean
178- > fx_variables:
179- > areacella:
180187> annual_statistics:
181188> operator: mean
189+ > convert_units:
190+ > units: degrees_C
182191>
183192> diagnostics:
184193>
@@ -191,14 +200,13 @@ and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
191200> variables:
192201> tas:
193202> mip: Amon
194- > preprocessor: select_january
195- > start_year: 2000
196- > end_year: 2000
203+ > preprocessor: to_degrees_c
204+ > timerange: 2000/P1M
205+ > caption: |
206+ > Global map of {long_name} in January 2000 according to {dataset}.
197207> scripts:
198208> script1:
199209> script: examples/diagnostic.py
200- > write_netcdf: true
201- > output_file_type: pdf
202210> quickplot:
203211> plot_type: pcolormesh
204212> cmap: Reds
@@ -214,14 +222,14 @@ and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
214222> short_name: tas
215223> mip: Amon
216224> preprocessor: annual_mean_amsterdam
217- > start_year : 1850
218- > end_year: 2000
225+ > timerange : 1850/2000
226+ > caption: Annual mean {long_name} in Amsterdam according to {dataset}.
219227> tas_global:
220228> short_name: tas
221229> mip: Amon
222230> preprocessor: annual_mean_global
223- > start_year : 1850
224- > end_year: 2000
231+ > timerange : 1850/2000
232+ > caption: Annual global mean {long_name} according to {dataset}.
225233> scripts:
226234> script1:
227235> script: examples/diagnostic.py
@@ -231,6 +239,7 @@ and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
231239>
232240{: .solution}
233241
242+
234243# # Keys and values in recipe settings
235244
236245The [ESMValTool
0 commit comments