Webinars - Detail

A Taste of Python and its Capabilities
Emily Wolin, Northwestern University


Are you sick of processing your seismic data with a pile of ancient Fortran code precariously duct-taped together with some shell scripts?  Did you gaze with envy at the beautiful plots on your neighbor's AGU poster?  Do you constantly find yourself wishing you had an easy way to interactively explore and visualize your seismic data, but don't want to shell out the big bucks for costly software packages?  Do you want to write code that is powerful, but easy to understand, modify, and share?  If so, Python is the programming language for you! 

We'll start with a basic introduction to the features of Python that distinguish it from other languages commonly used in the seismology community.  We'll explore a familiar seismological example of object orientation and learn some of Python's distinctive syntax.  You'll learn how to import modules and how to define your own functions, classes, and modules.  Simple exercises will showcase commonly-used scientific and mathematical modules such as NumPy, SciPy, and matplotlib.  Finally, you'll see some examples from the powerful ObsPy seismology module, which will be the subject of another upcoming IRIS webinar. 

During the webinar, you'll have many opportunities to run simple Python code in your own terminal window.  If you don't already have Python on your system, the Anaconda distribution (https://store.continuum.io/cshop/anaconda/) is free and contains many useful modules.  Example scripts may be downloaded before the webinar from (www.earth.northwestern.edu/~emilyw/pythonbasics.tgz).  


Last updated Key Points
  • Python
  • computer programming
  • data visualization