Skip to content

Commit c52daed

Browse files
Merge pull request #104 from ESMValGroup/instructions-data-download-own-machine-54
Instructions data download own machine 54
2 parents b7dcb9e + 97bf717 commit c52daed

File tree

3 files changed

+125
-27
lines changed

3 files changed

+125
-27
lines changed

.github/workflows/recipes.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Test recipes
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Cache conda
13+
uses: actions/cache@v1
14+
env:
15+
# Increase this value to reset cache if data/recipe_example.yml has not changed
16+
CACHE_NUMBER: 1
17+
with:
18+
path: ~/conda_pkgs_dir
19+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/recipe_example.yml') }}
20+
- uses: goanpeca/setup-miniconda@v1
21+
- name: Install esmvaltool
22+
run: conda install -n test -y -c esmvalgroup -c conda-forge esmvaltool-python
23+
- name: Setup config
24+
run: |
25+
$CONDA/envs/test/bin/esmvaltool config get_config_user
26+
patch ~/.esmvaltool/config-user.yml << EOF
27+
44c44
28+
< #rootpath:
29+
---
30+
> rootpath:
31+
48c48
32+
< # default: ~/default_inputpath
33+
---
34+
> default: ~/default_inputpath
35+
EOF
36+
- name: Cache datasets
37+
uses: actions/cache@v1
38+
env:
39+
# Increase this value to reset cache if data/dataset.urls has not changed
40+
CACHE_NUMBER: 0
41+
with:
42+
path: ~/default_inputpath
43+
key: ${{ runner.os }}-datasets-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/dataset.urls') }}
44+
- name: Download dataset files for data/recipe_example.yml
45+
run: |
46+
head -4 data/dataset.urls | grep -v '#' | wget --input-file - --no-clobber --directory-prefix $HOME/default_inputpath/
47+
- name: Run data/recipe_example.yml
48+
run: $CONDA/envs/test/bin/esmvaltool run $PWD/data/recipe_example.yml

data/dataset.urls

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Dataset urls required fo tutorial, described at https://esmvalgroup.github.io/ESMValTool_Tutorial/setup.html#using-your-own-machine
2+
# For Running a recipe episode
3+
# Variable = thetaoga, model = HadGEM2-ES
4+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/ocean/Omon/r1i1p1/v20110916/thetaoga/thetaoga_Omon_HadGEM2-ES_historical_r1i1p1_185912-200512.nc
5+
# Variable = ts, model = HadGEM2-ES
6+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/ts/ts_Amon_HadGEM2-ES_historical_r1i1p1_188412-190911.nc
7+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/ts/ts_Amon_HadGEM2-ES_historical_r1i1p1_190912-193411.nc
8+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/ts/ts_Amon_HadGEM2-ES_historical_r1i1p1_195912-198411.nc
9+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/ts/ts_Amon_HadGEM2-ES_historical_r1i1p1_198412-200511.nc
10+
# Variable = tas, model = HadGEM2-AO
11+
http://aims3.llnl.gov/thredds/fileServer/cmip5_css02_data/cmip5/output1/NIMR-KMA/HadGEM2-AO/historical/mon/atmos/Amon/r1i1p1/tas/1/tas_Amon_HadGEM2-AO_historical_r1i1p1_186001-200512.nc
12+
# Variable = tas, model = HadGEM2-ES
13+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/tas/tas_Amon_HadGEM2-ES_historical_r1i1p1_188412-190911.nc
14+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/tas/tas_Amon_HadGEM2-ES_historical_r1i1p1_190912-193411.nc
15+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/tas/tas_Amon_HadGEM2-ES_historical_r1i1p1_195912-198411.nc
16+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/atmos/Amon/r1i1p1/v20120928/tas/tas_Amon_HadGEM2-ES_historical_r1i1p1_198412-200511.nc
17+
# Variable = tos, model = HadGEM2-AO
18+
http://aims3.llnl.gov/thredds/fileServer/cmip5_css02_data/cmip5/output1/NIMR-KMA/HadGEM2-AO/historical/mon/ocean/Omon/r1i1p1/tos/1/tos_Omon_HadGEM2-AO_historical_r1i1p1_186001-200512.nc
19+
# Variable = tos, model = HadGEM2-CC
20+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-CC/historical/mon/ocean/Omon/r1i1p1/v20110930/tos/tos_Omon_HadGEM2-CC_historical_r1i1p1_185912-195911.nc
21+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-CC/historical/mon/ocean/Omon/r1i1p1/v20110930/tos/tos_Omon_HadGEM2-CC_historical_r1i1p1_195912-200511.nc
22+
# Variable = tos, model = HadGEM2-ES
23+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/ocean/Omon/r1i1p1/v20110916/tos/tos_Omon_HadGEM2-ES_historical_r1i1p1_185912-195911.nc
24+
http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/ocean/Omon/r1i1p1/v20110916/tos/tos_Omon_HadGEM2-ES_historical_r1i1p1_195912-200512.nc
25+
# For Working with preprocessors episode
26+
# Model = UKESM1-0-LL, project = CMIP6, Experiment = historical, ensemble= r1i1p1f2, variable = thetao, pr and tas, 1970-2000
27+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/Omon/thetao/gn/v20190627/thetao_Omon_UKESM1-0-LL_historical_r1i1p1f2_gn_200001-201412.nc
28+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/Omon/thetao/gn/v20190627/thetao_Omon_UKESM1-0-LL_historical_r1i1p1f2_gn_195001-199912.nc
29+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/Amon/tas/gn/v20190406/tas_Amon_UKESM1-0-LL_historical_r1i1p1f2_gn_195001-201412.nc
30+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/Amon/pr/gn/v20190406/pr_Amon_UKESM1-0-LL_historical_r1i1p1f2_gn_195001-201412.nc
31+
# Model = CanESM2, ensemble: "r(1:4)i1p1", project: CMIP5, variable = tas
32+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esg_dataroot/AR5/CMIP5/output/CCCma/CanESM2/historical/mon/atmos/tas/r1i1p1/tas_Amon_CanESM2_historical_r1i1p1_185001-200512.nc
33+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esg_dataroot/AR5/CMIP5/output/CCCma/CanESM2/historical/mon/atmos/tas/r2i1p1/tas_Amon_CanESM2_historical_r2i1p1_185001-200512.nc
34+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esg_dataroot/AR5/CMIP5/output/CCCma/CanESM2/historical/mon/atmos/tas/r3i1p1/tas_Amon_CanESM2_historical_r3i1p1_185001-200512.nc
35+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esg_dataroot/AR5/CMIP5/output/CCCma/CanESM2/historical/mon/atmos/tas/r4i1p1/tas_Amon_CanESM2_historical_r4i1p1_185001-200512.nc
36+
# Model = MPI-ESM-LR, ensemble: "r(1:2)i1p1", project: CMIP5, variable = tas
37+
http://esgf1.dkrz.de/thredds/fileServer/cmip5/cmip5/output1/MPI-M/MPI-ESM-LR/historical/mon/atmos/Amon/r1i1p1/v20120315/tas/tas_Amon_MPI-ESM-LR_historical_r1i1p1_185001-200512.nc
38+
http://esgf1.dkrz.de/thredds/fileServer/cmip5/cmip5/output1/MPI-M/MPI-ESM-LR/historical/mon/atmos/Amon/r2i1p1/v20120315/tas/tas_Amon_MPI-ESM-LR_historical_r2i1p1_185001-200512.nc
39+
# Model = UKESM1-0-LL, ensemble: "r(1:4)i1p1f2", grid: gn, project: CMIP6, variable = tas
40+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r2i1p1f2/Amon/tas/gn/v20190502/tas_Amon_UKESM1-0-LL_historical_r2i1p1f2_gn_195001-201412.nc
41+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r3i1p1f2/Amon/tas/gn/v20190502/tas_Amon_UKESM1-0-LL_historical_r3i1p1f2_gn_195001-201412.nc
42+
http://esgf-data3.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r4i1p1f2/Amon/tas/gn/v20190502/tas_Amon_UKESM1-0-LL_historical_r4i1p1f2_gn_195001-201412.nc
43+
# Model = CanESM5, ensemble: "r(1:4)i1p2f1", grid: gn, project: CMIP6, variable = tas
44+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esgC_dataroot/AR6/CMIP6/CMIP/CCCma/CanESM5/historical/r1i1p2f1/Amon/tas/gn/v20190429/tas_Amon_CanESM5_historical_r1i1p2f1_gn_185001-201412.nc
45+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esgC_dataroot/AR6/CMIP6/CMIP/CCCma/CanESM5/historical/r2i1p2f1/Amon/tas/gn/v20190429/tas_Amon_CanESM5_historical_r2i1p2f1_gn_185001-201412.nc
46+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esgC_dataroot/AR6/CMIP6/CMIP/CCCma/CanESM5/historical/r3i1p2f1/Amon/tas/gn/v20190429/tas_Amon_CanESM5_historical_r3i1p2f1_gn_185001-201412.nc
47+
http://crd-esgf-drc.ec.gc.ca/thredds/fileServer/esgC_dataroot/AR6/CMIP6/CMIP/CCCma/CanESM5/historical/r4i1p2f1/Amon/tas/gn/v20190429/tas_Amon_CanESM5_historical_r4i1p2f1_gn_185001-201412.nc

setup.md

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ If necessary, data can be downloaded using the
6868

6969
### CEDA-Jasmin
7070

71-
Please skip this section if you are not going to use JASMIN and go [here](#Github-account-(Advanced)).
71+
Please skip this section if you are not going to use JASMIN
72+
and go [here](#Github-account-(Advanced)).
7273

7374
If you do not already have an account on JASMIN, then request an account as soon
7475
as possible. Please follow [these instructions on how to create a Jasmin
@@ -253,30 +254,37 @@ local machine and go [here](#gitHub-account-(advanced)).
253254
If you are planning on running ESMValTool on your own machine, please make sure
254255
that you are able to download CMIP data and that you have several GB of space
255256
available to install conda & ESMValTool, but also enough to make a copy of some
256-
data.
257+
data (12Gb).
257258

258-
You will also need to able to use:
259-
- git
260-
- conda
261-
- synda
259+
We can download a single data file following the instructions as described below:
262260

263-
#### Linux/Unix
261+
1. Go to the [CMIP5 search page on the DKRZ ESGF node][cmip5-search]
262+
2. Perform the following search constraints
264263

265-
For Linux/Unix systems, please follow the instructions of the [Installation episode]({{
266-
page.root}}{% link _episodes/02-installation.md %}).
264+
- Model = HadGEM2-ES
265+
- Experiment = historical
266+
- Time frequency = mon
267+
- Ensemble = r1i1p1
268+
- Variable = thetaoga
267269

270+
3. Press search button
271+
4. On single search result press `List files`
272+
5. At bottom of page click on `Show All Files`
273+
6. Find the file which starts with `thetaoga` in the list
274+
7. Use `HTTP Download` link to download
275+
the [thetaoga_Omon_HadGEM2-ES_historical_r1i1p1_185912-200512.nc][theatoga.nc] file
276+
to `~/default_inputpath/` directory.
268277

269-
#### Mac OSx
278+
However, the tutorial needs more data files. The [dataset.urls][ds] file contains all data set URLs and in comments the used search constraints. All of the data files should be downloaded
279+
to `~/default_inputpath/` directory.
270280

271-
Also, for Mac OSx systems, please follow the instructions of the [Installation episode]({{
272-
page.root}}{% link _episodes/02-installation.md %}).
281+
To download the data, run the following command using [wget](https://en.wikipedia.org/wiki/Wget):
273282

274-
#### Windows
275-
276-
ESMValTool does not directly support Windows,
277-
but successful usage has been reported through the
278-
[Windows Subsystem for Linux(WSL)](https://docs.microsoft.com/en-us/windows/wsl/),
279-
available in Windows 10.
283+
~~~shell
284+
wget --no-clobber --input-file \
285+
https://github.com/ESMValGroup/ESMValTool_Tutorial/raw/master/data/dataset.urls \
286+
--directory-prefix $HOME/default_inputpath/
287+
~~~
280288

281289
## GitHub account (Advanced)
282290

@@ -310,13 +318,8 @@ A GitHub pull request is the act of requesting that a branch is merged with anot
310318
This is an advanced feature of GitHub, and will generally be performed by the
311319
ESMValTool development team.
312320

313-
## Install conda
314-
315-
The python package manager Conda (anaconda or miniconda) needs to be installed
316-
on your system before the tutorial starts. In some cases, your system may have a
317-
central version installed already.
318-
319-
More details on this process are available in the [Installation episode]({{
320-
page.root}}{% link _episodes/02-installation.md %}).
321-
322321
{% include links.md %}
322+
323+
[cmip5-search]: https://esgf-data.dkrz.de/search/cmip5-dkrz/
324+
[theatoga.nc]: http://esgf-data1.ceda.ac.uk/thredds/fileServer/esg_dataroot/cmip5/output1/MOHC/HadGEM2-ES/historical/mon/ocean/Omon/r1i1p1/v20110916/thetaoga/thetaoga_Omon_HadGEM2-ES_historical_r1i1p1_185912-200512.nc
325+
[ds]: https://github.com/ESMValGroup/ESMValTool_Tutorial/raw/master/data/dataset.urls

0 commit comments

Comments
 (0)