This lesson has passed peer-review! See the publication in JOSE.

Python for Atmosphere and Ocean Scientists: Setup

Software installation

In order to complete the lessons, you will need access to the following:

If you don’t already have these installed, please follow The Carpentries software installation instructions. (You do not need to install R, which is also listed at that site.)

Troubeshooting

If you have any trouble with software installation, The Carpentries maintain a list of common issues on their Configuration Problems and Solutions wiki page.

Code and Data

In your bash terminal, you will need to

$ git clone https://github.com/pletzer/python-aos-lesson

Then change your folder to

$ mkdir -p python-aos-lesson/code/data
$ cd python-aos-lesson/code/data

In the data directory, download the following files:

Installation of additional python packages: via the command line

(Windows users may need to open the Anaconda Prompt program and run conda init bash to make conda available at the Bash Shell.)

Add the conda-forge channel:

$ conda config --add channels conda-forge

Create a new environment called pyaos-lesson and install the packages there:

$ conda create -n pyaos-lesson jupyter xarray dask netCDF4 cartopy cmocean cmdline_provenance defopt

You can activate this new environment as follows:

$ conda activate pyaos-lesson

Software check

To check that everything is installed correctly, follow the instructions below.

Bash Shell

Git

Anaconda