Important note: This talk is being rescheduled as a result of the #ShutDownSTEM initiative. Further details are available here: https://softwareunderground.org/blog/2020/6/7/shutdownstem-at-transformI will update this once it has been rescheduled, but for now, please consider taking the time that would have been spent on this tutorial to read the links in the blogpost and consider what else can be done to aid and support marginalised voices in STEM in general and the geosciences in particular.
---
This tutorial is intended to give an overview of some vector geospatial capabilities within Python
, predominantly using geopandas. This should be accessible to most people who have some familiarity with Python
. Some basic knowledge of pandas would help, but is not required. Matplotlib will be used for some of the plotting; knowing how to make a simple plot is going to make parts of this tutorial simpler.
Topics to be covered:
- File I/O and GeoDataFrames
- Plotting Data
- Spatial Selections and subsetting
- Neighbours and distances
- Basemaps (Demo, more than a tutorial)
- Spatial Joins (time permitting)
Please make sure that your environment has
geopandas,
mapclassify,
rasterio,
contextily,
matplotlib,
numpy, and
jupyter, along with their dependencies installed.
The majority of this tutorial will be done in jupyter notebooks, as a mix of live coding and hands-on exercises for participants, if they wish to engage.
The course materials, an environment file for installing everything on your own PC are available in this
GitHub repo.There is also an option to use a Binder to run it remotely, with no install, by clicking this
finely crafted link.