Git Product home page Git Product logo

transform-2020-spatial-in-python's Introduction

Tutorial: Spatial Analysis in Python

DATE: Friday, June 12 2020 - 08:00 UTC

AUDIENCE: Intermediate

INSTRUCTOR: Martin Bentley, Digital Geoscientist, Agile

Part of the SoftwareUndergrounds online conference, TRANSFORM2020.

Video Stream:

Direct link to the live stream.

Welcome

Welcome to a brief tutorial on using Python for spatial analysis. This is intended for people who are more or less comfortable with Python, in particular pandas and matplotlib. Spatial analysis and technology is a broad field, and it is almost certainly not possible to cover everything. This tutorial will focus on vector data (points, lines, and polygons).

As a short note, both ArcGIS and QGIS have their own flavour of Python (arcpy and pyqgis) available within the program. Since I am not sure what people have access to, this tutorial will take a third option and use geopandas.

Set-up

Install-less (cloud) set-up

A binder version of this repository is available. Clicking that link will let you run everything in a browser without installing anything. It may take some time to initialise, so if you want to go with this option, it might be good to arrive a little bit early to set it up.

Because mybinder.org is a best-effort, free service, if there are many people attempting to use this service, it may be oversubscribed. If possible, it is recommended that you set up a local environment instead.

Local set-up

The easiest way to get up and running for this tutorial will be to clone the github repository. Note that some of the files the data folder are zipped. These can be left as they are, unless you are particularly curious.

It is recommended that you use the Anaconda python distribution. Please see the end of this section for some help if you need to install this.

Once you have conda installed, navigate to the downloaded folder, and type conda env create -f environment.yml in the Anaconda prompt. This will set up an environment named t20-fri-geo in which everything should work. Type conda activate t20-fri-geo, followed by jupyter notebook and you will be ready to roll. This will open a page in your web browser - please make sure that you use either Firefox, Chrome or Edge.

If you are doing things manually, the minimal packages to install are the following along with their dependencies:

It is recommended that these be installed in a new environment using anaconda.

Additional set-up instructions in the form of videos for Windows and Linux, or as a written guide are available. Alternatively, please feel free to ask in the #t20-fri-geo channel in the Slack group.

Other sessions

If you are interested in additional spatially-themed sessions specifically, the following may be of interest:

All have already happened, but the recordings of the live streams are still available via the Software Underground YouTube channel.

transform-2020-spatial-in-python's People

Contributors

mtb-za avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.