Skip to content

Commit 30a6420

Browse files
authored
Merge pull request #308 from ESMValGroup/fix_issue_jan
Fixing issues #276 #278 #296 #297
2 parents fd98947 + 02c19f5 commit 30a6420

4 files changed

Lines changed: 35 additions & 19 deletions

File tree

_episodes/03-configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ and then modify it if needed:
6060
nano ~/.esmvaltool/config-user.yml
6161
~~~
6262

63+
Any other editor can be used, e.g.vim.
64+
6365
This file contains the information for:
6466

6567
- Output settings

_episodes/04-recipe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ esmvaltool run --config_file ./config-user.yml examples/recipe_python.yml
4949
If everything is okay, you should see that ESMValTool is printing a lot of
5050
output to the command line. The final message should be "Run was successful".
5151
The exact output varies depending on your machine, but it should look something
52-
like the example output below.
52+
like the example log output on terminal below.
5353

5454
{% include example_output.txt %}
5555

_episodes/07-development-setup.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ nothing to commit, working tree clean
111111

112112
### 2 ESMValTool dependencies
113113

114+
Please don’t forget if an esmvaltool environment is already created
115+
following the lesson
116+
[Installation]({{ page.root }}{% link _episodes/02-installation.md %}),
117+
we should choose another name for the new environment in this lesson.
118+
114119
ESMValTool now uses `mamba` instead of `conda` for the recommended installation.
115120
For a minimal mamba installation, see section **Install Mamba** in lesson
116121
[Installation]({{ page.root }}{% link _episodes/02-installation.md %}).

_episodes/10-debugging.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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
236245
The [ESMValTool

0 commit comments

Comments
 (0)