File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33After going through the slides on how to make our research projects reproducible,
44it 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
77reproducibility 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
11161 . Create a new repository on your local machine with ` git init repro-examples `
12172 . 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:
4348Tasks:
4449
45501 . 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
Original file line number Diff line number Diff line change 11import xarray
22import 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' ] )
77plt .show ()
You can’t perform that action at this time.
0 commit comments