This repository holds the Python programming lectures that are part of the course "Computer methods for students in geosciences" given at the Institute of Earth Sciences at the University of Graz.
Lectures: Raoul Collenteur & Matevz Vremec
Topic | Content | Package |
---|---|---|
Programming basics | Jupyter Notebooks, Python code, importing packages, Variables, data types, working with text, plotting, reading errors | Python |
Math and arrays | Mathematical operators, 1D and 2D-Numpy arrays, Consolidate | Numpy |
For-loops & conditional statements | How to use for-loops to execute repetitive tasks. | Python |
Python Functions | How to define and use a function. global vs local variables, reading error messages from functions. Read_csv from pandas. | Python |
Data Analysis with Pandas | Mean, standard deviation, correlation. | Pandas |
Curve fitting with Scipy | Fit a linear function of the form Y=AX+B though some data. Plot the data and the R-squared value. | Scipy |