Getting Started with
Spatial Data Science in Python
University of Minnesota Geocomputing Group 10.24.18
University of Minnesota Day of Data 01.12.18
Bryan C. Runck
Department of Geography, Environment and Society
University of Minnesota
Objectives
Why Spatial?
Describe
What is spatial?
Cholera outbreak
London
What is spatial?
Cholera outbreak
London
What is spatial?
Farm management
Minnesota
What is spatial?
Farm management
Minnesota
Why think spatially?
Spatial Data + Jupyter
Getting Data: Minnesota Geospatial Commons
Link to Jupyter
https://z.umn.edu/spatial-python
Notebook: getting-starting-spatial-data.ipynb
Key functions (Demo)
!wget <insert weblink here>
!ls -l *.shp
!unzip <insert file name here> #if installed
Explore Minnesota Geospatial Commons
Google: Minnesota Geospatial Commons
Find a dataset that is:
5 minutes: Report back
Types of Spatial Data
Types of Spatial Data
Exploratory Spatial Data Analysis with GeoPandas
What is GeoPandas?
Extends Pandas with
Makes mapping easy in Python
Demo
Activity
Utilize the basic ideas we explored related to mapping to:
Spatial Autocorrelation
What is spatial autocorrelation?
How can we measure spatial autocorrelation?
Moran’s I
N, number of spatial units indexed by i, j
x, variable of interest
x_bar, is the mean of x
w_ij, is a spatial weights matrix
W is the sum of the weights
Weights Matrices: Define Neighbors
Defines the extent to which something is included
Demo
Activity
Utilize the basic ideas we explored related to spatial autocorrelation to:
15 minutes: report back
Thank You
Bryan C. Runck
runck014@umn.edu