Python for Geosciences: This is the first part of a PhD course entitled "Python and Machine learning for Geosciences", which was offered by the University of Stavanger (part 1: Python, Nestor Cardozo) and the University of Oslo (part 2: ML, Behzad Alaei and Anita Torabi) on 2022 and 2023, and was sponsored by NFIP.
This first part is five days, each one consisting of lectures (notebooks folder), and lab exercises (lab folder). Data, figures, and functions are included in their corresponding folders.
-
Day 1 covers the fundamentals: Variable types, control flow, functions and classes.
-
Day 2 covers reading, plotting, and animating data
-
Day 3 covers statistics and uncertainties
-
Day 4 covers orientation data, grids, and images
-
Day 5 covers well logs and seismic data. Notice that the data for the well logs' notebook are not included. These data are from the Norwegian Petroleum Directorate (NPD). If you are in Norway, please contact me and I would be happy to provide a link to the data.
Instructions: Follow the course by downloading or cloning the repository (click the green Code button). For every day (day1 to day5 folders), complete first the notebooks (files with ipynb extension in the notebooks folder), and then solve the lab exercises in the lab folder. If you are new to Python, I recommend following the course in sequential order, starting with the first notebook of day 1: day1/notebooks/day1_1.ipynb, and so on.
Note: You will need a Python distribution to do the course. I recommend Anaconda. The preliminaries.pdf explains how to install Anaconda.
Acknowledgements: Comments and corrections by Manuel David Soto Gonzalez, Wiktor Weibull, Aksel Hiorth, Lina Jonassen, and the PhDs who took the course greatly improved the course.
Please send comments or questions to nestor.cardozo@uis.no