Skip to content

Commit 08dbdad

Browse files
committed
fixed merge conflict
2 parents 0b66ec1 + 097b95a commit 08dbdad

31 files changed

+727
-338
lines changed

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: page
3+
title: "Contributor Code of Conduct"
4+
---
15
# Contributor Code of Conduct
26

37
As contributors and maintainers of this tutorial,

CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ There are many ways to contribute:
5151
[maintainers][tutorial-maintainers] have final say over what gets merged into
5252
the tutorial.
5353

54+
* Information on how to write a software carpentry lesson,
55+
can be found [here](https://carpentries.github.io/lesson-example/).
56+
57+
* Guidelines on how to develop a software carpentry style curriculum
58+
can be found [here](https://carpentries.github.io/curriculum-development/).
59+
5460
## Tutorial guidelines
5561

5662
This section demonstrates all the instructions for developing a lesson in the
@@ -176,4 +182,4 @@ Please see [information][contact-info] on how to subscribe to user mailing list.
176182
[swc-lesson-organization]: https://carpentries.github.io/lesson-example/03-organization/index.html
177183
[swc-lesson-formatting]: https://carpentries.github.io/lesson-example/04-formatting/index.html
178184
[user-engagement]: https://github.com/orgs/ESMValGroup/teams/userengagementteam
179-
[contact-info]: https://docs.esmvaltool.org/en/latest/community/contact.html#user-mailing-list
185+
[contact-info]: https://docs.esmvaltool.org/en/latest/introduction.html#user-mailing-list

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# ESMValTool Tutorial
22

3-
[![Join the chat at
4-
https://gitter.im/ESMValGroup/Tutorial](https://badges.gitter.im/ESMValGroup/Tutorial.svg)](https://gitter.im/ESMValGroup/Tutorial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3974592.svg)](https://doi.org/10.5281/zenodo.3974592)
3+
[![Join the chat at https://gitter.im/ESMValGroup/Tutorial](
4+
https://badges.gitter.im/ESMValGroup/Tutorial.svg)](
5+
https://gitter.im/ESMValGroup/Tutorial)
6+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3974592.svg)](
7+
https://doi.org/10.5281/zenodo.3974592)
68

79

810
[ESMValTool Tutorial][tutorial-site] is an open-source project in
@@ -42,4 +44,4 @@ To cite this tutorial, please use the information available at
4244
[tutorial-repo]: https://esmvalgroup.github.io/ESMValTool_Tutorial/
4345
[tutorial-site]: https://esmvalgroup.github.io/ESMValTool_Tutorial
4446
[user-engagement]: https://github.com/orgs/ESMValGroup/teams/userengagementteam
45-
[contact-info]: https://docs.esmvaltool.org/en/latest/community/contact.html#user-mailing-list
47+
[contact-info]: https://docs.esmvaltool.org/en/latest/introduction.html#user-mailing-list

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ kind: "lesson"
3131
repository: <USERNAME>/<PROJECT>
3232

3333
# Email address, no mailto:
34-
email: "esmvaltool@listserv.dfn.de"
34+
email: "esmvaltool_user_engagement_team@listserv.dfn.de"
3535

3636
# Sites.
3737
amy_site: "https://amy.carpentries.org/workshops"
@@ -50,9 +50,9 @@ training_site: "https://carpentries.github.io/instructor-training"
5050
workshop_repo: "https://github.com/carpentries/workshop-template"
5151
workshop_site: "https://carpentries.github.io/workshop-template"
5252
cc_by_human: "https://creativecommons.org/licenses/by/4.0/"
53-
ea_github: "https://github.com/escience-academy/"
54-
ea_pages: "https://github.com/escience-academy/escience-academy.github.io"
55-
ea_site: "https://escience-academy.github.io"
53+
esmvaltool_site: "https://www.esmvaltool.org/"
54+
esmvaltool_rtd: "https://esmvaltool.readthedocs.io"
55+
esmvaltool_github: "https://github.com/ESMValGroup"
5656

5757
# Surveys.
5858
pre_survey: "https://carpentries.typeform.com/to/wi32rS?slug="
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ documentation:
6464
- lastname_firstname
6565

6666
datasets:
67-
- {dataset: HadGEM2-ES, project: CMIP5, exp: historical, mip: Amon, ensemble: r1i1p1, start_year: 1960, end_year: 2005}
67+
- {dataset: HadGEM2-ES, project: CMIP5, exp: historical, mip: Amon,
68+
ensemble: r1i1p1, start_year: 1960, end_year: 2005}
6869

6970
preprocessors:
7071
global_mean:
@@ -88,8 +89,9 @@ diagnostics:
8889
>
8990
> > ## Solution
9091
> > The keys are explained in the ESMValTool documentation, in the `Recipe
91-
>> section `, under
92-
> [datasets](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/recipe/overview.html#recipe-section-datasets)
92+
> > section `, under
93+
> [datasets](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/recipe/
94+
overview.html#recipe-section-datasets)
9395
> {: .solution}
9496
{: .challenge}
9597

_episodes/01-quickstart.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: "Quickstart guide"
3+
teaching: 2
4+
exercises: 8
5+
questions:
6+
7+
- "What is the purpose of the quickstart guide?"
8+
- "How do I load and check the ESMValTool environment?"
9+
- "How do I configure ESMValTool?"
10+
- "How do I run a recipe?"
11+
12+
objectives:
13+
14+
- "Understand the purpose of the quickstart guide"
15+
- "Load and check the ESMValTool environment"
16+
- "Configure ESMValTool"
17+
- "Run a recipe"
18+
19+
keypoints:
20+
21+
- "The purpose of the quickstart guide is to enable a user of ESMValTool
22+
to run ESMValTool as quickly as possible without having to go through the
23+
whole tutorial"
24+
- "Use the `module load` command to load the ESMValTool environment,
25+
see the [installation]({{ page.root }}{% link _episodes/02-installation.md %})
26+
episode for more details and use `esmvaltool --help` to check the ESMValTool
27+
environment"
28+
- "Use `esmvaltool config get_config_user` to create the ESMValTool user
29+
configuration file"
30+
- "Use `esmvaltool run <recipe>.yml` to run a recipe"
31+
---
32+
>
33+
> This quickstart guide is compatible with ESMValTool v2.6.0.
34+
{: .callout}
35+
36+
> ## What is the purpose of the quickstart guide?
37+
>
38+
> - The purpose of the quickstart guide is to enable a user of ESMValTool to
39+
> run ESMValTool as quickly as possible by making the bare minimum number of
40+
> changes.
41+
{: .discussion}
42+
43+
> ## How do I load and check the ESMValTool environment?
44+
>
45+
> - For this quickstart guide, an assumption is made that ESMValTool has
46+
> already been installed at the site where ESMValTool will be run. If this is
47+
> not the case, see the [Installation][lesson-installation] episode in this
48+
> tutorial.
49+
>
50+
> - Load the ESMValTool environment by following the instructions at
51+
> [ESMValTool: Pre-installed versions on HPC clusters / other
52+
> servers][activate-environment].
53+
>
54+
> - Check the ESMValTool environment by accessing the help for ESMValTool:
55+
>
56+
> ~~~
57+
> esmvaltool --help
58+
> ~~~
59+
> {: .language-bash}
60+
{: .challenge}
61+
62+
> ## How do I configure ESMValTool?
63+
>
64+
> - Create the ESMValTool user configuration file (the file is written by
65+
> default to `~/.esmvaltool/config-user.yml`):
66+
>
67+
> ~~~
68+
> esmvaltool config get_config_user
69+
> ~~~
70+
> {: .language-bash}
71+
>
72+
> - Edit the ESMValTool user configuration file using your favourite text editor
73+
> to uncomment the lines relating to the site where ESMValTool will be run.
74+
>
75+
> - For more details about the ESMValTool user configuration file see the
76+
> [Configuration][lesson-configuration] episode in this tutorial.
77+
{: .challenge}
78+
79+
> ## How do I run a recipe?
80+
>
81+
> - Run the example Python recipe:
82+
>
83+
> ~~~
84+
> esmvaltool run examples/recipe_python.yml
85+
> ~~~
86+
> {: .language-bash}
87+
>
88+
> - Wait for the recipe to complete. If the recipe completes successfully, the
89+
> last line printed to screen at the end of the log will look something like:
90+
>
91+
> ~~~
92+
> YYYY-MM-DD HH:mm:SS, NNN UTC [NNNNN] INFO Run was successful
93+
> ~~~
94+
> {: .language-bash}
95+
>
96+
> - View the output of the recipe by opening the HTML file produced by
97+
> ESMValTool (the location of this file is printed to screen near the end of
98+
> the log):
99+
>
100+
> ~~~
101+
> YYYY-MM-DD HH:mm:SS, NNN UTC [NNNNN] INFO Wrote recipe output to:
102+
> file:///$HOME/esmvaltool_output/recipe_python_<date>_<time>/index.html
103+
> ~~~
104+
> {: .language-bash}
105+
>
106+
> - For more details about running recipes see the
107+
> [Running your first recipe][lesson-recipe] episode in this tutorial.
108+
{: .challenge}
109+
110+
{% include links.md %}

_episodes/02-installation.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ depending on your level of expertise or involvement with ESMValTool and
3030
associated software such as GitHub and Mamba.
3131

3232
1. If you have access to a server where ESMValTool is already installed
33-
as a module, for e.g., the [CEDA JASMIN](https://help.jasmin.ac.uk/article/4955-community-software-esmvaltool)
33+
as a module, for e.g., the [CEDA JASMIN](https://help.jasmin.ac.uk/article
34+
/4955-community-software-esmvaltool)
3435
server, you can simply load the module with the following command:
3536
~~~bash
3637
module load esmvaltool
3738
~~~
38-
After loading ``esmvaltool``, we can start using ESMValTool right away. Please see the [next lesson]({{ page.root }}{% link _episodes/03-configuration.md %}).
39+
After loading ``esmvaltool``, we can start using ESMValTool right away. Please
40+
see the [next lesson]({{ page.root }}{% link _episodes/03-configuration.md %}).
3941
2. If you would like to install ESMValTool as a mamba package, then this lesson
4042
will tell you how!
41-
3. If you would like to start experimenting with existing diagnostics or contributing to ESMvalTool, please see the instructions for
43+
3. If you would like to start experimenting with existing diagnostics or
44+
contributing to ESMvalTool, please see the instructions for
4245
source installation in the lesson [Development and
4346
contribution]({{ page.root }}{% link _episodes/07-development-setup.md %}) and
4447
in the [documentation](https://docs.esmvaltool.org/en/latest/quickstart/installation.html).
@@ -62,7 +65,8 @@ in the [documentation](https://docs.esmvaltool.org/en/latest/quickstart/installa
6265
ESMValTool is distributed using [Mamba](https://mamba.readthedocs.io/en/latest/index.html).
6366
To install mamba on ``Linux`` or ``MacOSX``, follow the instructions below:
6467

65-
1. Please download the installation file for the latest Mamba version [here](https://github.com/conda-forge/miniforge#mambaforge).
68+
1. Please download the installation file for the latest Mamba version
69+
[here](https://github.com/conda-forge/miniforge#mambaforge).
6670

6771
2. Next, run the installer from the place where you downloaded it:
6872

@@ -98,7 +102,8 @@ To install mamba on ``Linux`` or ``MacOSX``, follow the instructions below:
98102
This should show the path to your mamba executable, e.g. `~/mambaforge/bin/mamba`.
99103

100104
For more information about installing mamba,
101-
see [the mamba installation documentation](https://docs.esmvaltool.org/en/latest/quickstart/installation.html#mamba-installation).
105+
see [the mamba installation documentation](https://docs.esmvaltool.org/en
106+
/latest/quickstart/installation.html#mamba-installation).
102107

103108
### Install the ESMValTool package
104109

@@ -121,18 +126,22 @@ mamba create --name esmvaltool esmvaltool 'python=3.10'
121126
```
122127

123128
On MacOSX ESMValTool functionalities in Julia, NCL, and R are not supported. To install
124-
a Mamba environment on MacOSX, please refer to specific [information](https://docs.esmvaltool.org/en/latest/quickstart/installation.html#installation-on-macosx).
129+
a Mamba environment on MacOSX, please refer to specific [information](https://
130+
docs.esmvaltool.org/en/latest/quickstart/installation.html#installation-on-
131+
macosx).
125132

126133
This will create a new [Mamba
127-
environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
134+
environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks
135+
/manage-environments.html)
128136
called `esmvaltool`, with the ESMValTool package and all of its dependencies
129137
installed in it.
130138

131139

132140
> ## Common issues
133141
>
134142
> You find a list of common installation problems and their solutions in the
135-
> [documentation](https://docs.esmvaltool.org/en/latest/quickstart/installation.html#common-installation-problems-and-their-solutions).
143+
> [documentation](https://docs.esmvaltool.org/en/latest/quickstart/installation
144+
.html#common-installation-problems-and-their-solutions).
136145
>
137146
{: .callout}
138147

@@ -219,8 +228,8 @@ to display the command line help.
219228
> > {: .bash}
220229
> > The version of ESMValTool installed should be displayed on the screen as:
221230
> > ~~~
222-
> > ESMValCore: 2.5.0
223-
> > ESMValTool: 2.5.0
231+
> > ESMValCore: 2.6.0
232+
> > ESMValTool: 2.6.0
224233
> > ~~~
225234
> > {: .output}
226235
> {: .solution}

_episodes/03-configuration.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ file are mentioned below. For example, CMIP is used for a dataset from
140140
the Climate Model Intercomparison Project whereas OBS may be
141141
used for an observational dataset.
142142
More information about the projects used in ESMValTool is available in the
143-
[documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/quickstart/find_data.html).
143+
[documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/
144+
quickstart/find_data.html).
144145
When using ESMValTool on your own machine, you can create a directory to download
145146
climate model data or observation data sets and let the tool use data from there.
146147
It is also possible to ask
@@ -222,7 +223,8 @@ removing the machine specific lines should be sufficient to access input data.
222223
>>```
223224
>>
224225
>> - For more information about setting the rootpath, see also the ESMValTool
225-
>> [documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/quickstart/find_data.html).
226+
>> [documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/
227+
quickstart/find_data.html).
226228
> {: .solution}
227229
{: .challenge}
228230
@@ -236,7 +238,8 @@ The ``drs`` setting describes the file structure for several projects (e.g.
236238
CMIP6, CMIP5, obs4mips, OBS6, OBS) on several key machines
237239
(e.g. BADC, CP4CDS, DKRZ, ETHZ, SMHI, BSC). For more
238240
information about ``drs``, you can visit the ESMValTool documentation on
239-
[Data Reference Syntax (DRS)](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/quickstart/find_data.html#cmor-drs).
241+
[Data Reference Syntax (DRS)](https://docs.esmvaltool.org/projects/esmvalcore/
242+
en/latest/quickstart/find_data.html#cmor-drs).
240243
241244
> ## Set the correct drs
242245
>
@@ -299,7 +302,9 @@ information about ``drs``, you can visit the ESMValTool documentation on
299302
>> 2. Observational data are organized in Tiers depending on their level of
300303
>> public availability. Therefore the default directory must be structured
301304
>> accordingly with sub-directories `TierX` e.g. Tier1, Tier2 or Tier3, even
302-
>> when `drs: default`. More details can be found in the [documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/quickstart/find_data.html#observational-data).
305+
>> when `drs: default`. More details can be found in the
306+
[documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/
307+
quickstart/find_data.html#observational-data).
303308
>>
304309
> {: .solution}
305310
{: .challenge}
@@ -319,7 +324,8 @@ if you want to feed some additional data (e.g. shape files) to your recipe.
319324
> auxiliary_data_dir: ~/auxiliary_data
320325
> ```
321326
> See more information in ESMValTool
322-
[document](https://docs.esmvaltool.org/projects/ESMValCore/en/latest/quickstart/configure.html?highlight=auxiliary_data#user-configuration-file).
327+
[document](https://docs.esmvaltool.org/projects/ESMValCore/en/latest/quickstart
328+
/configure.html?highlight=auxiliary_data#user-configuration-file).
323329
{: .callout}
324330
325331
> ## Number of parallel tasks

0 commit comments

Comments
 (0)