To attend you need to have registered for this course here https://www.eventbrite.co.uk/e/geospatial-python-for-beginners-tickets-61485110621#tickets
for more information email firstname.lastname@example.org
I understand and appreciate that everyone has their own unique computer setup. This is something that can cause Python users some problems. It can be confusing.
Because of this I recommend you install Anaconda. However you can use your own setup if you prefer.
Recommended Python Set up
Important please check before course starts
I recommend using Anaconda https://www.anaconda.com/download/ This course is for Python 3, however it ‘should’ work on Python 2.7. At the time of the course there will be less than a year left of Python 2.7 support https://pythonclock.org/
You may need to open the Anaonda Prompt as an Administrator, by doing this it should remove any permission errors. Right click and select Run As Administrator.
If you can type ‘python’ into a the anaconda prompt then you should be good to go
Anaconda comes pre cooked with jupyter notebook
type (you might wish to change directory to the root of D: first –
into the command prompt and it should open up a web browser within your directory of all your folder/files and notebooks.
Make sure you have gdal installed. Close all windows and in a new anaconda command prompt the command is
conda install -c conda-forge gdal
This is a beginners course so at this point you are good to go, we will not be covering any of the libraries below… however I believe it is worth getting these installed as part of a standard Python Geospatial setup. It is entirely up to you.
conda install -c conda-forge opencv=3.3.1
conda install -c anaconda scikit-learn
conda install -c anaconda scikit-image
raster stats install
conda install -c conda-forge rasterstats
conda install -c anaconda scipy
conda install -c anaconda rasterio
conda install -c conda-forge geopandas
conda install -c conda-forge shapely
Check that gdal is installed using the syntax
from osgeo import gdal,ogr
I have written two more detailed blog posts that should be of help if you have any issues
I will cover Jupyter Notebooks in this course, so you don’t need to read this post.
Further useful software
I run the course through a folder on my computer. I suggest you create a folder on your machine
Please download (21mb)
The QGIS Sample Data https://qgis.org/downloads/data/qgis_sample_data.zip
Extract this to
Please download the course data data_package_beg (~17mb)
Extract this to
I will make the course code available at the start of the morning and afternoon. I would like you to try and follow the examples as we go, but don’t worry about mistakes this is all good practice.
Throughout the course as our learning progresses I have created a series of challenges. These are to aid your learning, help you practice. At the end of the challenge I share a solution, I will make these available after the course. We will time permitting discuss other solutions. The aim is to experiment try new things.
- Introduction to Jupyter Notebooks
- Intro to:
- Python data types (lists, tuples, strings, integers, floats, dicts)
- Programming basics (loops, if/else statements, operators)
- Printing variables, getting help and installing libraries
- Functions and inbuilt functions
- Slicing lists
- Working with directories of data
- Reading and writing textfiles
- Creating a point shapefile from a textfile
- Shapefile cheat sheet
- Introduction to NumPy
- Reading a raster dataset in GDAL
- Using subprocess to call GDAL functions
Please contact me with any questions email@example.com