Once you've installed the required software for the workshop (following the instructions given to participants)...
- Clone this repository:
$ git clone https://github.com/carpentrieslab/python-aos-lesson.git
$ cd python-aos-lesson
- Install the
jupyter
,xarray
andcmocean
libraries in a new conda environment calledpyaos-lesson
:
$ conda config --add channels conda-forge
$ conda create -n pyaos-lesson jupyter xarray cmocean
-
Activate the new environment by typing
source activate pyaos-lesson
. If that doesn't work, tryconda activate pyaos-lesson
. -
Install the
cmdline-provenance
library:
(pyaos-lesson) $ pip install cmdline-provenance
- Run the final version of the script that participants will develop throughout the workshop:
(pyaos-lesson) $ python code/plot_precipitation_climatology_final.py data/pr_Amon_ACCESS1-3_historical_r1i1p1_200101-200512.nc Jan test.png
It should produce an image file (test.png
) as well as a log of command line entries (test.txt
).