Map Algebra and Beyond: 1

Slides:



Advertisements
Similar presentations
Esri UC 2014 | Technical Workshop |. ArcGIS Spatial Analyst Integrated raster and vector spatial analysis tools Extension product that adds functionality.
Advertisements

Standard watershed and stream delineation recipe - Vector stream (ex. NHD data) fusion into DEM raster (burning in) - Sink removal - Flow direction - Flow.
Raster Based GIS Analysis
Border around project area Everything else is hardly noticeable… but it’s there Big circles… and semi- transparent Color distinction is clear.
Using ESRI ArcGIS 9.3 Arc ToolBox 3 (Spatial Analyst)
Lecture by Austin Troy © 2005 Lecture 13: Introduction to Raster Spatial Analysis Using GIS-- Introduction to GIS Lecture Notes by Austin Troy, University.
More Raster and Surface Analysis in Spatial Analyst
ANALYSIS 3 - RASTER What kinds of analysis can we do with GIS? 1.Measurements 2.Layer statistics 3.Queries 4.Buffering (vector); Proximity (raster) 5.Filtering.
Introduction to Geographic Information Systems Miles Logsdon
Geographic Information Systems : Data Types, Sources and the ArcView Program.
GUS: 0265 Fundamentals of GIS Lecture Presentation 4: Raster Data Model and Operations Jeremy Mennis Department of Geography and Urban Studies Temple University.
Lecture 14: More Raster and Surface Analysis in Spatial Analyst Using GIS-- Introduction to GIS By Weiqi Zhou, University of Vermont Thanks are due.
Map Analysis with Raster Datasets Francisco Olivera, Ph.D., P.E. Department of Civil Engineering Texas A&M University.
Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,
Spatial Analysis with Raster Datasets - 2 Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Let’s pretty it up!. Border around project area Everything else is hardly noticeable… but it’s there Big circles… and semi- transparent Color distinction.
GIS Functions and Operators The functions associated with raster cartographic modeling can be divided into five types: The functions associated with raster.
Cartographic modelling
GIS Analysis Functions INLS GIS Digital Information: Uses, Resources & Software Tools.
Fundamentals of GIS Lecture Materials by Austin Troy except where noted © 2008 Lecture 14: More Raster and Surface Analysis in Spatial Analyst Using.
Spatial Analysis – Raster data analysis Lecture 5-6.
Raster Data Analysis Chapter 11. Introduction  Regular grid  Value in each cell corresponds to characteristic  Operations on individual, group, or.
Fundamentals of GIS Lecture Materials by Austin Troy except where noted © 2008 Lecture 13: Introduction to Raster Spatial Analysis Using GIS-- By.
Spatial Analyst Toolbox Lecture 17. Spatial Analyst Tool Sets  Conditional  Density  Distance  Generalization  Ground Water  Interpolation  Conditional.
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
Applied Cartography and Introduction to GIS GEOG 2017 EL
Focal and Zonal Functions RNR 419/519. Focal Functions Focal (or neighborhood) functions compute an output grid in which the output value at each cell.
Distance. Euclidean Distance Minimum distance from a source (Value NoData) Input grid must have at least one source cell with the rest of the grid.
Digital Elevation Model Based Watershed and Stream Network Delineation Understanding How to use Reading
Spatial Analysis.
CHAPTER 12 RASTER DATA ANALYSIS 12.1 Data Analysis Environment
Map Algebra and Beyond: Advanced topics and applications to Nexrad Xingong Li University of Kansas 5 November 2009.
Spatial Analyst: Getting Started Steve Kopp Elizabeth Graham.
Introduction to Raster Spatial Analysis Using GIS-- Introduction to GIS Raster Query Map Calculation Zonal statistics Terrain functions Viewshed.
Lecture 5 Raster Data Analysis Introduction Analysis with raster data is simple and efficient for it’s feature based on position Analysis.
Intro to Raster GIS GTECH361 Lecture 11. CELL ROW COLUMN.
Map Algebra. Lesson 5A overview  Introduction to Map Algebra (5A)  Language components  Syntax and rules  Objects  Operators  Commands  Exercise.
1 Raster Analysis I Overview Grid layers Setting grid layer and analysis properties Grid function types Performing grid analysis Map Algebra GEO4152 Applications.
Fundamentals of GIS Lecture Materials by Austin Troy except where noted © 2008 Lecture 13: Introduction to Raster Spatial Analysis Using GIS-- By.
Copyright © 2006 by Maribeth H. Price 15-1 Chapter 15 Raster Analysis.
Raster Analysis. Learning Objectives Develop an understanding of the principles underlying lab 4 Introduce raster operations and functions Show how raster.
Advanced GIS Using ESRI ArcGIS 9.3 Spatial Analyst 2.
CEE 795 Water Resources Modeling and GIS Learning Objectives: Demonstrate the concepts of spatial fields as a way to represent geographical information.
NR 143 Study Overview: part 1 By Austin Troy University of Vermont Using GIS-- Introduction to GIS.
1 Overview Importing data from generic raster files Creating surfaces from point samples Mapping contours Calculating summary attributes for polygon features.
Raster Analysis and Terrain Analysis Chapter 10 & 11 Raster Analysis.
GUS: 0262 Fundamentals of GIS Lecture Presentation 7: Raster Operations Jeremy Mennis Department of Geography and Urban Studies Temple University.
Reading Assignment: Bolstad Chapters 10 & 11 Spatial Analysis (Raster)
CFR 250/590 Introduction to GIS, Autumn 1999 Raster Analysis I © Phil Hurvitz, raster1.ppt 1  Overview Grid themes Setting grid theme and analysis.
GISWR 2015 Midterm Review. Definition of Latitude,  (1) Take a point S on the surface of the ellipsoid and define there the tangent plane, mn (2) Define.
YOUR TITLE HERE Your Name.
Chapter 8 Raster Analysis.
GIS Analysis Queries Operations Non-spatial Spatial Vector Raster
Introduction to GIS David R. Maidment
Raster Analysis Ming-Chun Lee.
URBDP 422 Urban and Regional Geo-Spatial Analysis
Raster Analysis and Terrain Analysis
Lecture 2: Review of Raster Operations
Spatial Analysis: Raster
Statistical surfaces: DEM’s
Spatial Analysis Using Grids
Review- vector analyses
GISWR 2015 Midterm Review.
Raster Data Analysis.
Spatial Analysis: Raster
5. Zonal Analysis 5.1 Definition of a zone 5.2 Zonal statistics
Creating Watersheds and Stream Networks
Spatial Analysis with Raster Datasets-1
Presentation transcript:

Map Algebra and Beyond: 1 Map Algebra and Beyond: 1. Map Algebra for Scalar Fields Xingong Li University of Kansas 3 Nov 2009

Topics The conventional map algebra Local operations Focal operations Zonal operations Global operations

Losses (Evaporation, Infiltration) Map Algebra Raster layers are manipulated by math-like expression to create new raster layers Precipitation - Losses (Evaporation, Infiltration) = Runoff 5 2 3 4 7 6 - =

Map Algebra Operations Wednesday, April 19, 2017 Map Algebra Operations Tomlin (1990) defines and organizes operations as local, focal, zonal, and global according to the spatial scope of the operations Geographic Information System and Cartographic Modeling, Englewood Cliffs: Prentice Hall, 1990. Tomlin (1983, 1990) defined and organized operations on raster data model as local, focal and zonal according to the spatial scope of the operations. Geographic Information System and Cartographic Modeling, Englewood Cliffs: Prentice Hall, 1990. Menton et al (1991) add global operations. Local Focal Zonal Global

Local Operations Compute a new raster layer. The value for each cell on the output layer is a function of one or more cell values at the same location on the input layer(s).

Local Operations Arithmetic operations +, -, *, /, Abs, … Relational operators >, <, … Statistic operations Min, Max, Mean, Majority, … Trigonometric operations Sine, Cosine, Tan, Arcsine, Arccosine, … Exponential and logarithmic operations Sqr, sqrt, exp, exp2, …

Local Operation--Examples 9 7 8 5 6 3 2 1 9 8 6 3 + = 9 7 8 5 6 3 2 1 N 3.5 5 / =

Removing Clouds Using a Local Operation Wednesday, April 19, 2017 Removing Clouds Using a Local Operation Two consecutive ocean surface temperature raster layers for the same area (measured at a slightly different time). Biweekly NDVI green report Images are from: http://rs.gso.uri.edu/amy/avhrr.html Images are from: http://rs.gso.uri.edu/amy/avhrr.html

30-Year (1971-2000) Monthly PRISM Precipitation Feb. Aug. Apr. Oct. How do we define seasonality of precipitation at a single location? Jun. Dec.

Seasonality at San Francisco Total = 18.69” [4.01 3.48 2.69 1.30 0.48 0.11 0.01 0.02 0.19 0.74 1.57 4.09]

Monthly Precipitation as a Vector Quantity x=p*sin(monthAngle) y=p*cos(monthAngle) Each month’s duration is equivalent to a 30° angle Monthly data are plotted at midpoint: 15°, 45°, 75°, ……

Seasonality Analysis Add all vectors = Resultant vector Monthly precipitation (in inches): [4.01 3.48 2.69 1.30 0.48 0.11 0.01 0.02 0.19 0.74 1.57 4.09] x=p*sin(monthAngle) y=p*cos(monthAngle) Add all vectors = Resultant vector

Seasonality at San Francisco Average monthly precipitation at San Francisco in inches [4.01 3.48 2.69 1.30 0.48 0.11 0.01 0.02 0.19 0.74 1.57 4.09] Precipitation vectors x=1.09, 2.46, 2.59, 1.26, 0.34, 0.03, 0, -0.01, -0.18, -0.71, -1.11, -1.04 y=3.86, 2.47, 0.74, -0.32, -0.33, -0.11, -0.01, -0.01, -0.05, 0.19, 1.11, 3.95 Resultant vector sx=4.7 sy=11.5 Magnitude=12.41 Direction=22.25 Time of occurrence Direction in month (= January) Seasonality index 1-magnitude of resultant vector/total precip. = 1- (12.41/18.69) = 0.34 (larger number means more uniform) 12.41 22.25°

Seasonality Analysis: Local functions at each cell over the whole domain sy Cos(15) * [p01] + Cos(45) * [p02] + Cos(75) * [p03] + Cos(105) * [p04] + Cos(135) * [p05] + Cos(165) * [p06] + Cos(195) * [p07] + Cos(225) * [p08] + Cos(255) * [p09] + Cos(285) * [p10] + Cos(315) * [p11] + Cos(345) * [p12] sx Sin(15) * [p01] + Sin(45) * [p02] + Sin(75) * [p03] + Sin(105) * [p04] + Sin(135) * [p05] + Sin(165) * [p06] + Sin(195) * [p07] + Sin(225) * [p08] + Sin(255) * [p09] + Sin(285) * [p10] + Sin(315) * [p11] + Sin(345) * [p12] Magnitude of resultant vector Sqrt(Sqr([sx]) + Sqr([sy])) Total precipitation [p01] + [p02] + [p03] + [p04] + [p05] + [p06] + [p07] + [p08] + [p09] + [p10] + [p11] + [p12] Seasonality 1 - ([Mag. Of resultant vector] / [Total Precip])

Time of Occurrence

Seasonality Index Large number means more uniform 0.34 Large number means more uniform Small number means more seasonal

Map Algebra Operations Wednesday, April 19, 2017 Map Algebra Operations Operations are grouped as local, focal, zonal, and global according to the spatial scope of the operations. Tomlin (1983, 1990) defined and organized operations on raster data model as local, focal and zonal according to the spatial scope of the operations. Geographic Information System and Cartographic Modeling, Englewood Cliffs: Prentice Hall, 1990. Menton et al (1991) add global operations.

Focal Operations Compute an output value for each cell as a function of the cells that are within its neighborhood Widely used in image processing with different names Convolution, filtering, kernel or moving window Focal operations are spatial in nature

Neighborhoods The simplest and most common neighborhood is a 3 by 3 rectangle window Other possible neighborhoods a rectangle, a circle, an annulus (a donut) or a wedge

Finding Appropriate Wind Farm Sites Wind speed Higher elevation higher speed Elevation (>= 1000m) Aspect facing prevailing wind direction Wind exposure Not blocked by nearby hills in the prevailing wind direction Data Prevailing wind direction 225  to 315 DEM Wedge neighborhood 0 degree is East, counterclockwise (135—225)

Wind Exposure Analysis Wednesday, April 19, 2017 Wind Exposure Analysis Find max elevation in the prevailing wind direction FocalMax with a wedge neighborhood Find cells not blocked by hills in the neighborhood DEM > FocalMax Relaxed conditions DEM > FocalMean DEM > FocalMedian FocalPercentile > 95% How large should the neighborhood be? Prevailing wind direction may vary from cell to cell (raster layers)

Map Algebra Operations Wednesday, April 19, 2017 Map Algebra Operations Operations are grouped as local, focal, zonal, and global according to the spatial scope of the operations. Tomlin (1983, 1990) defined and organized operations on raster data model as local, focal and zonal according to the spatial scope of the operations. Geographic Information System and Cartographic Modeling, Englewood Cliffs: Prentice Hall, 1990. Menton et al (1991) add global operations.

Zonal Operations Compute a new value for each cell as a function of the cell values within a zone containing the cell Zone layer defines zones Value layer contains input cell values

Zonal Statistical Operations Calculate statistics for each cell by using all the cell values within a zone Zonal statistical operations: ZonalMean, ZonalMedian, ZonalSum, ZonalMinimum, ZonalMaximum, ZonalRange, ZonalMajority, ZonalVariety, ….

Zonal Statistical Operation Example 1 4 3 2 1 2 3 4 5 6 7 8 9 Zone Layer Value Layer ZonalMax 8 9 Output Layer

Outputs of Zonal Operations Raster layer All the cells within a zone have the same value on the output raster layer Table Each row in the table contains the statistics for a zone. The first column is the value (or ID) of each zone. The table can be joined back to the zone layer.

NEXRAD Cell Precipitation Measurement spatial resolution

Subwatershed Precipitation from NEXRAD Cells Precipitation model/application resolution

NEXRAD Subwatershed Precipitation

Calculating Subwatershed Precipitation Depth pi—precipitation depth in an hour ai—portion of the watershed that falls in the ith cell a1 a2 a3 a4

Map Algebra Operations Wednesday, April 19, 2017 Map Algebra Operations Operations are grouped as local, focal, zonal, and global according to the spatial scope of the operations. Tomlin (1983, 1990) defined and organized operations on raster data model as local, focal and zonal according to the spatial scope of the operations. Geographic Information System and Cartographic Modeling, Englewood Cliffs: Prentice Hall, 1990. Menton et al (1991) add global operations.

Global Operations Operations that compute an output raster where the value of each output cell is a function of all the cells in the input raster Global statistical operations Distance operations. Euclidean distance Cost distance

Distance Operations Characterize the relationships between each cell and source cells (usually representing features) Distance to nearest source cell Direction to nearest source cell

Euclidean Distance Operation Wednesday, April 19, 2017 Euclidean Distance Operation Calculates the shortest straight distance from each cell to its nearest source cell (EucDistance) Assigns each cell the value of its nearest source cell (EucAllocation) Calculates the direction from each cell to its nearest source cell (EucDirection) 1 2 1 2 Hypotenuse

EucDistance Example Buffers can be delineated from the distance raster

EucAllocation Example Voronoi diagram Thesisen’s polygon

Non-Euclidean Distance (Cost Distance) Straight line distance (between A and B) is a type of cost Cost could also be measured as time or money spent Friction may vary space Least cost and least-cost-path

CostDistance Operation Wednesday, April 19, 2017 CostDistance Operation Compute the least accumulative cost from each cell to its least-cost source cell Source raster Representing features (points, lines, and polygons) No-source cells are set to NODATA value Friction raster Cost encountered while moving in a cell (distance, time, dollars and efforts) Unit is: cost per unit distance Can have barriers (NODATA cells) source friction Distance example: Slope distance or vertical distance Time example: reciprocal of speed

Fungus Invasion Fungus spreading depends on the availability of precipitation A fungus is introduced at a seaport in January 1 Questions Which area would be affected by July? Will the fungus reach Austin by the end of July?

Fungus Spreading Speed Fungus travel speed depends on precipitation. < 100 mm/month, 0 m/day 100 – 200 mm/month, 4000 m/day > 200 mm/month, 7000 m/day

The Friction Raster Unit of the friction raster: Wednesday, April 19, 2017 The Friction Raster Travel speed Unit of the friction raster: days per unit distance reciprocal Friction = 1 / speed

The Least Cost Raster What do the values mean on the cost raster layer? The days that the fungus will take to reach a cell

Friction Varies in Space & Time Wednesday, April 19, 2017 Friction Varies in Space & Time Precipitation varies both in space and time. How could we model the spreading of the fungus now? February Sometime fungus won’t move Some time they move fast and some time they move slowly April

Fungus Invasion

Fungus Invasion by Month

Sum of Two Cost Surfaces Wednesday, April 19, 2017 Sum of Two Cost Surfaces All the cells on the least-cost path have the same cost. The path cells are at the bottom of the sum surface. The least cost between A and B and passes through a cell.

Corridor Analysis Corridor = accumulative cost < a threshold value Wednesday, April 19, 2017 Corridor Analysis All the cells on the least-cost path have the same cost. The path cells are at the bottom of the sum surface. Corridor = accumulative cost < a threshold value

Summary Concepts What you have just seen is the basis for the map algebra language in ArcGIS Grid and Spatial Analyst Local functions Focal functions Zonal functions Global functions