Skip to content

Commit a69ad97

Browse files
committed
changes made to include options to download data from ESGF nodes and to remove defunct options such as write_plots
1 parent 58190a8 commit a69ad97

File tree

1 file changed

+74
-44
lines changed

1 file changed

+74
-44
lines changed

_episodes/03-configuration.md

Lines changed: 74 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ This is a [YAML file](https://yaml.org/spec/1.2/spec.html).
2727
You can get the default configuration file by running:
2828

2929
~~~bash
30-
esmvaltool config get_config_user
30+
esmvaltool config get_config_user --path=<target_dir>
3131
~~~
32-
33-
It will save the file to: `~/.esmvaltool/config-user.yml`, where `~` is the
32+
The default configuration file will be downloaded to the directory specified with
33+
the `--path` variable. If this option is not used, the file will be saved to the default
34+
location: `~/.esmvaltool/config-user.yml`, where `~` is the
3435
path to your home directory. Note that files and directories starting with a
3536
period are "hidden", to see the `.esmvaltool` directory in the terminal use
3637
`ls -la ~`.
@@ -67,7 +68,7 @@ The configuration file starts with output settings that
6768
inform ESMValTool about your preference for output.
6869
You can turn on or off the setting by ``true`` or ``false``
6970
values. Most of these settings are fairly self-explanatory.
70-
For example, `write_plots: true` means that diagnostics create plots.
71+
7172

7273
> ## Saving preprocessed data
7374
>
@@ -101,8 +102,9 @@ using the format: YYYYMMDD_HHMMSS.
101102
> ## Set the destination directory
102103
>
103104
> Let's name our destination directory ``esmvaltool_output`` in the working directory.
104-
> ESMValTool should write the output to this path.
105-
> How to modify the `config-user.yml`?
105+
> ESMValTool should write the output to this path, so make sure you have the disk space
106+
> to write output to this directory.
107+
> How do we set this in the `config-user.yml`?
106108
>
107109
>> ## Solution
108110
>>
@@ -120,66 +122,88 @@ using the format: YYYYMMDD_HHMMSS.
120122
ESMValTool uses several categories (in ESMValTool, this is referred to as projects)
121123
for input data based on their source. The current categories in the configuration
122124
file are mentioned below. For example, CMIP is used for a dataset from
123-
the climate model intercomparison project whereas OBS is used for an observational dataset.
124-
We can find more information about the projects in the ESMValTool
125+
the Climate Model Intercomparison Project whereas OBS is used for an observational
126+
dataset.
127+
More information about the projects used in ESMValTool is available in the
125128
[documentation](https://docs.esmvaltool.org/projects/esmvalcore/en/latest/quickstart/find_data.html).
129+
When using ESMValTool on your own machine, you can create a directory to download
130+
climate model data or observation data sets and let the tool use data from there.
131+
It is also possible to ask
132+
ESMValTool to download climate model data as needed. This can be done by specifying a
133+
download directory and by setting the option to download data as shown below.
134+
135+
```yaml
136+
# Directory for storing downloaded climate data
137+
download_dir: ~/climate_data
138+
offline: false
139+
```
140+
If you are working offline or do not want to download the data then set the
141+
option above to `true`.
142+
126143
The ``rootpath`` specifies the directories where ESMValTool will look for input data.
127-
For each category, you can define either one path or several paths as a list.
128-
For example:
144+
For each category, you can define either one path or several paths as a list. For example:
129145
130146
```yaml
131147
rootpath:
132148
CMIP5: [~/cmip5_inputpath1, ~/cmip5_inputpath2]
133149
OBS: ~/obs_inputpath
134150
RAWOBS: ~/rawobs_inputpath
135-
default: ~/default_inputpath
136-
CORDEX: ~/default_inputpath
151+
default: ~/climate_data
137152
```
138-
139-
Site-specific entries for Jasmin and DKRZ are listed at the end of the
140-
example configuration file.
153+
These are typically available in the default configuration file you downloaded, so simply
154+
removing the machine specific lines should be sufficient to access input data.
141155
142156
> ## Set the correct rootpath
143157
>
144158
> In this tutorial, we will work with data from
145159
> [CMIP5](https://esgf-node.llnl.gov/projects/cmip5/)
146160
> and [CMIP6](https://esgf-node.llnl.gov/projects/cmip6).
147-
> How can we moodify the `rootpath` to make sure the data path is set correctly
148-
> for both CMIP5 and CMIP6?
149-
>
161+
> How can we modify the `rootpath` to make sure the data path is set correctly
162+
> for both CMIP5 and CMIP6?
150163
> Note:
151-
> to get the data, check instruction in
164+
> to get the data, check the instructions in
152165
> [Setup]({{ page.root }}{% link setup.md %}).
153166
>
154167
>> ## Solution
155168
>>
156169
>> - Are you working on your own local machine?
157170
>> You need to add the root path of the folder where the data is available
158171
>> to the `config-user.yml` file as:
172+
>>
159173
>>```yaml
160174
>> rootpath:
161175
>> ...
162176
>> CMIP5: ~/esmvaltool_tutorial/data
163177
>> CMIP6: ~/esmvaltool_tutorial/data
164178
>>```
165179
>>
166-
>> - Are you working with on a computer cluster like Jasmin or DKRZ?
167-
>> Site-specific path to the data are already listed at the end of the
180+
>> - Are you working on your local machine and have downloaded data using ESMValTool?
181+
>> You need to add the root path of the folder where the data has been downloaded to as
182+
>> specified in the `download_dir`.
183+
>>
184+
>> ```yaml
185+
>> rootpath:
186+
>> ...
187+
>> CMIP5: ~/climate_data
188+
>> CMIP6: ~/climate_data
189+
>>```
190+
>>
191+
>> - Are you working on a computer cluster like Jasmin or DKRZ?
192+
>> Site-specific path to the data for JASMIN/DKRZ/ETH/IPSL
193+
>> are already listed at the end of the
168194
>> `config-user.yml` file. You need to uncomment the related lines.
169-
>> For example, on Jasmin:
195+
>> For example, on JASMIN:
170196
>>
171197
>>```yaml
172-
>> # Site-specific entries: Jasmin
173-
>> # Uncomment the lines below to locate data on JASMIN
174-
>> rootpath:
175-
>> CMIP6: /badc/cmip6/data/CMIP6
176-
>> CMIP5: /badc/cmip5/data/cmip5/output1
177-
>> # CMIP3: /badc/cmip3_drs/data/cmip3/output
178-
>> # OBS: /gws/nopw/j04/esmeval/obsdata-v2
179-
>> # OBS6: /gws/nopw/j04/esmeval/obsdata-v2
180-
>> # obs4mips: /gws/nopw/j04/esmeval/obsdata-v2
181-
>> # ana4mips: /gws/nopw/j04/esmeval/obsdata-v2
182-
>> # CORDEX: /badc/cordex/data/CORDEX/output
198+
>>auxiliary_data_dir: /gws/nopw/j04/esmeval/aux_data/AUX
199+
>>rootpath:
200+
>> CMIP6: /badc/cmip6/data/CMIP6
201+
>> CMIP5: /badc/cmip5/data/cmip5/output1
202+
>> OBS: /gws/nopw/j04/esmeval/obsdata-v2
203+
>> OBS6: /gws/nopw/j04/esmeval/obsdata-v2
204+
>> obs4MIPs: /gws/nopw/j04/esmeval/obsdata-v2
205+
>> ana4mips: /gws/nopw/j04/esmeval/obsdata-v2
206+
>> default: /gws/nopw/j04/esmeval/obsdata-v2
183207
>>```
184208
>>
185209
>> - For more information about setting the rootpath, see also the ESMValTool
@@ -216,8 +240,16 @@ information about ``drs``, you can visit the ESMValTool documentation on
216240
>> CMIP5: default
217241
>> CMIP6: default
218242
>>```
219-
>>
220-
>> - Are you working with on a computer cluster like Jasmin or DKRZ?
243+
>> - Are you asking ESMValTool to download the data for use with your diagnostics?
244+
>> You need to set the `drs` of the data in the `config-user.yml` file as:
245+
>> ```yaml
246+
>> drs:
247+
>> CMIP5: ESGF
248+
>> CMIP6: ESGF
249+
>> CORDEX: ESGF
250+
>> obs4MIPs: ESGF
251+
>>```
252+
>> - Are you working on a computer cluster like Jasmin or DKRZ?
221253
>> Site-specific `drs` of the data are already listed at the end of the
222254
>> `config-user.yml` file. You need to uncomment the related lines.
223255
>> For example, on Jasmin:
@@ -227,12 +259,10 @@ information about ``drs``, you can visit the ESMValTool documentation on
227259
>> drs:
228260
>> CMIP6: BADC
229261
>> CMIP5: BADC
230-
>> # CMIP3: BADC
231-
>> # CORDEX: BADC
232-
>> # OBS: BADC
233-
>> # OBS6: BADC
234-
>> # obs4mips: BADC
235-
>> # ana4mips: BADC
262+
>> OBS: default
263+
>> OBS6: default
264+
>> obs4mips: default
265+
>> ana4mips: default
236266
>>```
237267
>>
238268
> {: .solution}
@@ -242,8 +272,8 @@ information about ``drs``, you can visit the ESMValTool documentation on
242272
>
243273
> 1. In the previous exercise, we set the `drs` of CMIP5 data to `default`.
244274
> Can you explain why?
245-
> 2. Have a look at the directory structure of the data.
246-
> There is the folder `Tier1`. What does it mean?
275+
> 2. Have a look at the directory structure of the `OBS` data.
276+
> There is a folder called `Tier1`. What does it mean?
247277
>
248278
>> ## Solution
249279
>>
@@ -254,7 +284,7 @@ information about ``drs``, you can visit the ESMValTool documentation on
254284
>> 2. Observational data are organized in Tiers depending on their level of
255285
>> public availability. Therefore the default directory must be structured
256286
>> accordingly with sub-directories `TierX` e.g. Tier1, Tier2 or Tier3, even
257-
>> when `drs: default`.
287+
>> 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).
258288
>>
259289
> {: .solution}
260290
{: .challenge}

0 commit comments

Comments
 (0)