These tutorials build on knowledge sequentially, and use examples with real geological data.
Scripts are available in Jupyter Notebook or python script form (Spyder) – these are open source tools available to download here: https://www.continuum.io/downloads
0. What is Python? And why do geologists need it?
Python is an object-oriented programming language. EEK!
Geologists can use python to process large data sets, to manipulate existing data sets, to run math and statistics on data, to make figures & plots, and to automate data collection and manipulation. And more…
But WHY, programming is hard? Because doing stuff by hand is a PITA. Doing complicated plots and math in Excel is sometimes difficult, impossible, or kludgy. Because who wants to do the same stuff every day of the year, when a computer can do it for you automagically?
Sounds exciting, right!? Ready to get started?
You’ll need Jupyter Notebook or Spyder installed to do the following tutorials.
1. What is a variable?
A variable is like a bucket, it’s a place where you can store “stuff”. “Stuff” to a Geologist is DATA. Variables can be numbers, strings(text), lists, tuples, dictionaries.
2. How do we get data and read data to put into variables?
(Jupyter Notebook) (python script)
REUSABLE CODE SNIPPETS
Did you find any of these tutorials useful? Please let me know? I welcome feedback and any/all improvements. Thanks!