Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions exercises/README → exercises/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
After going through the slides on how to make our research projects reproducible,
it is time to go through a practice scenario!

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

## Data

If you are trying to work through these exercises, you will need the data that
the scripts rely on, which can be found here: https://doi.org/10.5281/zenodo.7014332.

## Instructions:

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

## Section 1: Version control

Expand Down Expand Up @@ -43,6 +48,10 @@ Tasks:
Tasks:

1. Create a README for the repository
2. Add comments and docstrings where you think is necessary

Extension: Use an documentation tool, such as Sphinx, to automate building the
documentation.

## Section 5: Try it out!

Expand Down
4 changes: 2 additions & 2 deletions exercises/problem/plot1.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import xarray
import matplotlib.pyplot as plt

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

ds['temp'].plot()
plt.fill_between(ds['time'].data, ds['tas_lower'].data, ds['tas_upper'])
plt.show()
Loading