Foundations of Geographic Information Systems Final Project

profileusaggwp
Lecture7.ppt

GIS 5103 – Fundamentals of GIS

Lecture 7

Intro to R-Studio & Python for GIS

Week 7

Winter 2019

What is R-Studio & why should I use it?

  • Free open-source integrated coding language.
  • Powerful computing/programing & simple UI
  • Also very popular

Intro to R & Python - Lecture 7

  • Applications & Capabilities
  • Statistics
  • Graphics
  • Programing
  • Calculator
  • GIS
  • Neural Networks
  • Etc.

Intro to R & Python - Lecture 7

Intro to R & Python - Lecture 7

Intro to R & Python - Lecture 7

  • Import Data
  • Files of interest located in working directory.

Intro to R & Python - Lecture 7

Manipulate & Organize Data

Intro to R & Python - Lecture 7

  • Various functions for parameters of interest
  • Able to work with data and create data.
  • Convert, Transpose, data with single commands.
  • Plots / Diagrams
  • plotMF(object.cls)
  • plotMF(object)

Intro to R & Python - Lecture 7

Most Popular Uses of R

  • Data Management
  • Conversion, sub-setting, merging, transformations
  • Statistical & Mathematical Analysis
  • ANOVA’s, Modeling, Regressions
  • Programming / Operations / System Interface
  • Automation, Special Conditions
  • Graph / Data Display / Configuration
  • Data Visualization, High Customization
  • Simulations
  • High level scenario modeling

Intro to R & Python - Lecture 7

Variables

Can define characters/numbers as nearly anything

x = 5

First_Name = Mike

f = (sin(y) / tan(sum(z)) * variance(y/z)

Name – Type – Size – Value

Created Title– character/matrix/list – Bytes/KB/MB – Output

Intro to R & Python - Lecture 7

Functions & Syntax

Mean(x, trim = 0, na.rm = FALSE, …)

Function(input, argument 1, argument 2, …)

*Commas used to separate arguments/inputs*

Intro to R & Python - Lecture 7

Intro to R & Python - Lecture 7

  • Help Dialogue

Intro to R & Python - Lecture 7

What is Python & why should I use it?

  • Object-orientated, high level programming language with dynamic semantic
  • Built in data structures, dynamic typing/binding
  • Used as glue to connect programs / components together.
  • Supports modules / packages / code re-use

Intro to R & Python - Lecture 7

Python Libraries = R-Studio Packages

  • GIS Libraries
  • GDAL
  • OGR
  • Pyproj
  • Shapely
  • Mapnik
  • MySQL
  • PostGIS
  • SpatiaLite

Intro to R & Python - Lecture 7

Intro to R & Python - Lecture 7

Intro to R & Python - Lecture 7

How we will use python & Libraries

Intro to R & Python - Lecture 7

  • GIS Automation
  • Python
  • R-Studio
  • Model Builder

Intro to R & Python - Lecture 7

Common Automated processes

  • Address systems
  • Data Updating
  • Map Templating
  • Spatial Joins
  • Digitizing
  • Calculations
  • Models
  • Work Flows

Intro to R & Python - Lecture 7

After reviewing this lecture you should be able to:

  • List applications/uses of a coding languages
  • Know many of the popular input file types
  • Understand/Replicate functions, syntax, style
  • Know the names of essential packages/libraries
  • List commonly automated tasks
  • Be able to download & Install the softwares

Intro to R & Python - Lecture 7