This is the repository for the University of Edinburgh's OOSA course. There is a separate directory for each week's work. As we progress, suggested answers will be uploaded.
The foundations folder contains some warm up exercises to transition on to the course. There are two folders within:
- basic_features
- iterating
The basic_features folder contains a set of scripts introducing the basic Python features (data types, loops, plotting etc.). Other than 06_objects.py, which will be covered in week 2, these should already be familar to you and are included here for revision.
The iterating directory contains some exercises to practice using loops and work up to moving around a raster dataset.
Week 1 covers:
Aspects
- Github version control and code repository
- Computer basics
- Revision of loops and file I/O
Algorithm
- Introduction to algorithm design: Finding minima and sorting
Contains two scripts to demonstrate reading from a text file and writing to a text file. The data folder contains the data for the file reading example.
Contains a text file with some sample data to practice reading with the fileIO code.
The code in these repositories make use of the following packages and is all in python3:
numpy
matplotlib.pylot
h5py
pyproj
gdal
rasterio