You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -59,10 +59,11 @@ For additional reeds, please have a look at the recipe format description in the
59
59
## How to run ESMValTool
60
60
61
61
Once you’ve set up your conda environment and installed ESMValTool (see episode #2 LINK) and set up your config-user.yml file to correctly match you local environment, (see episode #3 LINK), ESMValTool is invoked using a simple command:
62
-
~~~
62
+
63
+
~~~source
63
64
esmvaltool -c configuration recipe
64
65
~~~
65
-
{: .source}
66
+
66
67
67
68
To try your hand with a basic recipe, please work through this episode.
68
69
@@ -72,61 +73,60 @@ The recipe presented here is a simple, basic recipe that takes a single dataset
72
73
73
74
Please download the following recipe into your ESMValTool working area with the name: recipe_example.yml LINK
74
75
75
-
>## recipe_example.yml
76
-
>~~~YAML
77
-
> 1 # ESMValTool
78
-
> 2 # recipe_example.yml
79
-
> 3 ---
80
-
> 4 documentation:
81
-
> 5 description: Demonstrate basic ESMValTool example
82
-
> 6
83
-
> 7 authors:
84
-
> 8 - demora_lee
85
-
> 9 - mueller_benjamin
86
-
>10 - swaminathan_ranjini
87
-
>11
88
-
>12 maintainer:
89
-
>13 - demora_lee
90
-
>14
91
-
>15 references:
92
-
>16 - demora2018gmd
93
-
>17 # Some plots also appear in ESMValTool paper 2.
> Use the command and investigate the sample recipe.
125
-
> ~~~
126
+
> ~~~bash
126
127
> vim recipe_example.yml
127
128
> ~~~
128
-
> {: .source}
129
-
>
129
+
{: .challenge}
130
130
131
131
Please note the following sections:
132
132
- documentation: lines 4-20
@@ -174,31 +174,51 @@ Please note the following sections:
174
174
- the next indent (here: timeseries_diag) is the scripts’ names (a string without whitespace) for the script to use
175
175
- script: a executable script with a directory relative to the `esmvaltool/diag_scripts/` directory
176
176
177
-
178
-
> What is the short_name of the variable being analysed?
177
+
> ## Please answer the following questions:
178
+
> What is the short_name of the variable being analyzed?
179
179
>
180
180
> What is the diagnostic script being used?
181
181
>
182
-
> How many years of data are being analysed?
182
+
> How many years of data are being analyzed?
183
183
>
184
184
> What do you think running this recipe will produce?
185
185
{: .challenge}
186
186
187
+
188
+
> ## What is the short_name of the variable being analyzed?
189
+
> thetaoga - Global Average Sea Water Potential Temperature
190
+
{: .solution}
191
+
192
+
> ## What is the diagnostic script being used?
193
+
> `ocean/diagnostic_timeseries.py`
194
+
{: .solution}
195
+
196
+
> ## How many years of data are being analyzed?
197
+
> 1859 to 2005, that is 147 years.
198
+
{: .solution}
199
+
200
+
> ## What do you think running this recipe will produce?
201
+
> A time series plot of thetaoga with increements of 1 year.
202
+
{: .solution}
203
+
187
204
> ## Not all parts of the recipe are mandatory
188
205
> Some functionalities of the example recipe are mandatory, while others are not. E.g., if you miss any of the documentation information, the call will break.
> Follow the terminal guiding you through the subprocesses that are running. Can you find where the preprocessor and the diagnostic are starting? Which one took longer to process?
200
216
{: .challenge}
201
217
218
+
> ## Exemplary output
219
+
> FIXME
220
+
{: .solution}
221
+
202
222
Each time you run the ESMValTool, it will produce a new output directory within your specified work directory with the name of the recipe and the tagged runtime. This folder should contain four folders:
203
223
- run
204
224
- work
@@ -218,8 +238,31 @@ Each time you run the ESMValTool, it will produce a new output directory within
218
238
> - Your settings.yml file.
219
239
> - A metadata.yml file.
220
240
> - The diagnostic log file.
221
-
{: .discussion}
241
+
{: .checklist}
242
+
243
+
Exemplary output (depending on the directory paths and package versions that are available) can be found below:
244
+
245
+
> ## Your output plot(s).
246
+
> FIXME (include plots)
247
+
{: .solution}
248
+
249
+
> ## Your main output log file.
250
+
> FIXME (include example log)
251
+
{: .solution}
252
+
253
+
> ## Your settings.yml file.
254
+
> FIXME (include the settings)
255
+
{: .solution}
256
+
257
+
> ## A metadata.yml file.
258
+
> FIXME (include the metadata)
259
+
{: .solution}
260
+
261
+
> ## The diagnostic log file.
262
+
> FIXME (include the diag log)
263
+
{: .solution}
222
264
265
+
## Do your first edits
223
266
224
267
> ## Edit the recipe and run again
225
268
> So far, the example recipe has used global volume-weighted ocean temperature. Please edit this recipe to investigate one of the following fields:
@@ -239,6 +282,30 @@ Each time you run the ESMValTool, it will produce a new output directory within
@@ -247,7 +314,7 @@ Each time you run the ESMValTool, it will produce a new output directory within
247
314
248
315
## Common issues & tips
249
316
250
-
> ## Esmvaltool not found
317
+
> ## esmvaltool not found
251
318
> Can you run the command “esmvaltool -h”. If no, then it’s possible that the conda environment isn’t activated. Please return to the installation section, episode #2 LINK.
0 commit comments