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
- "What is user configuration file and how can I use it?"
6
+
- What is the user configuration file and how should I use it?
7
+
7
8
objectives:
8
-
- "Understand the data directories structure"
9
-
- "Configure ESMValTool to ignore some settings"
9
+
- Understand the contents of the user-config.yml file
10
+
- Prepare a personalized user-config.yml file
11
+
- Configure ESMValTool to use some settings
12
+
10
13
keypoints:
11
-
- "The ``config-user.yml`` file tells ESMValTool what data are input"
12
-
- "The ``config-user.yml`` file tells ESMValTool what directory is the destination"
14
+
- The ``config-user.yml`` tells ESMValTool where to find input data.
15
+
- "``rootpath`` defines the root directory for the input data."
16
+
- "``output_dir`` defines the destination directory."
17
+
13
18
---
14
19
15
20
## The configuration file
16
21
17
-
The ``config-user.yml`` configuration file contains all the global level information needed by ESMValTool to run.
18
-
This is an (YAML file) [https://yaml.org/spec/1.2/spec.html]. An example configuration file can be found in the root directory of the ESMValTool repository.
19
-
Make a copy and rename it to ``config-user.yml``:
22
+
The ``config-user.yml`` configuration file contains all the global level information
23
+
needed by ESMValTool to run. This is an
24
+
[YAML file](https://yaml.org/spec/1.2/spec.html). An example configuration file
25
+
can be found in the root directory of the ESMValTool repository:
to see a raw version of the file, right-click and press ``save as``,
40
+
then you can rename it to ``config-user.yml``and save it into the working directory
41
+
``esmvaltool_tutorial``.
42
+
43
+
Now, let's change our working directory in a terminal window to ``esmvaltool_tutorial``.
44
+
Then, we run a text editor called Nano to have a look inside the configuration file:
45
+
46
+
~~~bash
47
+
nano config-user.yml
23
48
~~~
24
-
{: .source}
25
49
26
50
This file contains the information for:
27
-
* Rootpaths to the data from different projects
28
-
* Directory structure for input data
29
-
* Number of available CPUs
30
-
* Destination directory
31
-
* Auxiliary data directory
32
-
* Output settings
33
-
34
-
## Rootpaths to input data
35
-
ESMValTool uses several categories (in ESMValTool, this is referred to as projects) for input data based on their source, like CMIP for dataset from climate model intercomparison project, and OBS for observational dataset that adhere to (CMOR standard)[https://cmor.llnl.gov/].
36
-
For each category, you can define either one path or several pathes as a list.
37
-
In this lesson, you work with data from (CMIP5)[https://esgf-node.llnl.gov/projects/cmip5/].
38
-
Add the root path of the folder where you downloaded the data during the (Setup)[https://escience-academy.github.io/lesson-esmvaltool/setup.html].
39
51
52
+
- Rootpath to input data
53
+
- Directory structure for the data from different projects
54
+
- Number of tasks that can be run in parallel
55
+
- Destination directory
56
+
- Auxiliary data directory
57
+
- Output settings
58
+
59
+
> ## Text editor side note
60
+
>
61
+
> No matter what editor you use, you will need to know where it searches
62
+
> for and saves files. If you start it from the shell, it will (probably)
63
+
> use your current working directory as its default location. We use ``nano``
64
+
> in examples here because it is one of the least complex text editors.
65
+
> Press <kbd>ctrl</kbd> + <kbd>O</kbd> to save the file,
66
+
> and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
67
+
{: .callout}
68
+
69
+
## Rootpath to input data
70
+
71
+
ESMValTool uses several categories (in ESMValTool, this is referred to as projects)
72
+
for input data based on their source. The current categories in the configuration
73
+
file are mentioned below. For example, CMIP is used for a dataset from
74
+
the climate model intercomparison project whereas OBS is used for an observational dataset.
75
+
We can find more information about the projects in the ESMValTool
0 commit comments