Skip to content

Commit 8e67c58

Browse files
committed
Switch to different datasets for exercises
1 parent fb02170 commit 8e67c58

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

exercises/README renamed to exercises/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
After going through the slides on how to make our research projects reproducible,
44
it is time to go through a practice scenario!
55

6-
The code in `problem` is an example of a research project which has not taken
6+
The code in `problem/` is an example of a research project which has not taken
77
reproducibility into account.
88

9+
## Data
10+
11+
If you are trying to work through these exercises, you will need the data that
12+
the scripts rely on, which can be found here: https://doi.org/10.5281/zenodo.7014332.
13+
914
## Instructions:
1015

1116
1. Create a new repository on your local machine with `git init repro-examples`
1217
2. Copy the files in the `problem` directory into the new repository
13-
3. Download the data needed for the analysis from https://zenodo.org/records/16875985
18+
3. Download the data needed for the analysis from https://doi.org/10.5281/zenodo.7014332
1419

1520
## Section 1: Version control
1621

@@ -43,6 +48,10 @@ Tasks:
4348
Tasks:
4449

4550
1. Create a README for the repository
51+
2. Add comments and docstrings where you think is necessary
52+
53+
Extension: Use an documentation tool, such as Sphinx, to automate building the
54+
documentation.
4655

4756
## Section 5: Try it out!
4857

exercises/problem/plot1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import xarray
22
import matplotlib.pyplot as plt
33

4-
ds = xarray.open_dataset("../data/CARS2009_temp20-40S_69-88W.nc")
4+
ds = xarray.open_dataset("../data/HadCRUT.5.0.0.0_analysis_summary-series_180E-0N-180W-30N_annual.nc")
55

6-
ds['temp'].plot()
6+
plt.fill_between(ds['time'].data, ds['tas_lower'].data, ds['tas_upper'])
77
plt.show()

0 commit comments

Comments
 (0)