Introduction to Python

Introduction to Python

Python is one of the most popular coding languages in (geo)sciences and beyond. It can easily be used for a wide variety of programming tasks – you can preprocess data, model it, plot it etc all using python. It is free, open-source, and easy to use across different operating systems. There are lots of resources available online to get you started or help when you get stuck, and new toolkits are being developed all the time.

This course introduces python to students who have no, or very little, experience of coding. It is taught over 1 or 2 days in welcome week, alongside introductions to Matlab and linux, ensuring students have some familiarity with these tools before using them in modules throughout their MSc programme.

Teaching is via a series of jupyter notebooks with examples and exercises that students work through a tutorial setting. They cover the very basics of variables, objects, loops, and functions, and move on to making figures using matplotlib, simple data processing and analysis with pandas, map-making with pygmt, and downloading their first seismogram using obspy.


MSc Geophysics


Welcome week


Tutorials, self-directed learning

%d bloggers like this: