Public Repository

Last pushed: 2 years ago
Short Description
VIEPS Introduction to Python course (look for year tag for relevant version)
Full Description

Python for Earth Scientists

Interactive python notebooks for the 'Introduction to Python' class at the University of Melbourne School of Earth Sciences.

Prof Louis Moresi

  • (c) University of Melbourne, 2015


Mapping - An introduction to map making with the Cartopy package, including scalar and vector plots, using online map/image tools, and obtaining data with obspy to plot seismicity.

Github repository

Docker information

The sync doesn't work that well with automated builds but this is approximately what the Dockerfile looks like. See Github for details

FROM lmoresi/unimelb-debian-base:v1.01

## ============================================================
## base file has all the labour intensive stuff in it. 
## ============================================================

# Create a non-privileged user to run the notebooks

RUN useradd --create-home --home-dir /home/serpentine --shell /bin/bash --user-group serpentine
RUN mkdir /uom_course && chown serpentine:serpentine /uom_course

# skip if you need to change things in the live container

USER serpentine
ENV HOME=/uom_course
ENV SHELL=/bin/bash
ENV USER=serpentine

RUN git clone /uom_course/ # Watch the cache !

RUN ls /uom_course/Notebooks

# Make a scratch directory available to connect to the host machine.
# Make the Notebook Resources directory available for extracting outputs etc
# Should not be needed as I put a README there in the repo

# RUN mkdir -p /uom_course/Notebooks/external

VOLUME /uom_course/Notebooks/external
VOLUME /uom_course/Notebooks/Mapping/Resources

# Launch the notebook server from the Notebook directory

WORKDIR /uom_course/Notebooks
ENTRYPOINT ["/usr/local/bin/tini", "--"]
CMD jupyter notebook --ip= --no-browser
Docker Pull Command

Comments (0)