Geographic Information Systems (GIS) Spatial Analyst [10] Dr. Mohammad N. Almasri. [10] Spring 2018 GIS Dr. Mohammad N. Almasri Spatial Analyst

Similar documents
Mapping Distance and Density

Cell based GIS. Introduction to rasters

Lecture 9. Raster Data Analysis. Tomislav Sapic GIS Technologist Faculty of Natural Resources Management Lakehead University

Raster Data. James Frew ESM 263 Winter

Raster Analysis and Functions. David Tenenbaum EEOS 465 / 627 UMass Boston

Module 7 Raster operations

Lecture 6: GIS Spatial Analysis. GE 118: INTRODUCTION TO GIS Engr. Meriam M. Santillan Caraga State University

Neighbourhood Operations Specific Theory

+ = Spatial Analysis of Raster Data. 2 =Fault in shale 3 = Fault in limestone 4 = no Fault, shale 5 = no Fault, limestone. 2 = fault 4 = no fault

Spatial Analysis (Vector) II

Understanding Geospatial Data Models

Lab 12: Sampling and Interpolation

Map Analysis of Raster Data I 3/8/2018

Getting Started with Spatial Analyst. Steve Kopp Elizabeth Graham

Surface Analysis. Data for Surface Analysis. What are Surfaces 4/22/2010

Raster Data Model & Analysis

Geol 588. GIS for Geoscientists II. Zonal functions. Feb 22, Zonal statistics. Interpolation. Zonal statistics Sp. Analyst Tools - Zonal.

Creating Surfaces. Steve Kopp Steve Lynch

L7 Raster Algorithms

Getting Started with Spatial Analyst. Steve Kopp Elizabeth Graham

RASTER ANALYSIS GIS Analysis Fall 2013

Raster GIS applications

GEOGRAPHIC INFORMATION SYSTEMS Lecture 18: Spatial Modeling

Lesson 5 overview. Concepts. Interpolators. Assessing accuracy Exercise 5

RASTER ANALYSIS GIS Analysis Winter 2016

Purpose: To explore the raster grid and vector map element concepts in GIS.

Spatial Analysis with Raster Datasets

Working with Map Algebra

How does Map Algebra work?

GEOGRAPHIC INFORMATION SYSTEMS Lecture 24: Spatial Analyst Continued

ENGRG Introduction to GIS

Watershed Sciences 4930 & 6920 GEOGRAPHIC INFORMATION SYSTEMS

GIS Tools - Geometry. A GIS stores data as different layers of information Different feature types are stored in individual files.

Surface Creation & Analysis with 3D Analyst

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

RASTER ANALYSIS S H A W N L. P E N M A N E A R T H D A T A A N A LY S I S C E N T E R U N I V E R S I T Y O F N E W M E X I C O

Lab 12: Sampling and Interpolation

Raster GIS applications Columns

Review of Cartographic Data Types and Data Models

Raster Data. James Frew ESM 263 Winter

Class #2. Data Models: maps as models of reality, geographical and attribute measurement & vector and raster (and other) data structures

Dijkstra's Algorithm

Raster Analysis. Overview Neighborhood Analysis Overlay Cost Surfaces. Arthur J. Lembo, Jr. Salisbury University

Esri International User Conference. San Diego, California. Technical Workshops. July Creating Surfaces. Steve Kopp and Steve Lynch

The Raster Data Model

GEOGRAPHIC INFORMATION SYSTEMS Lecture 25: 3D Analyst

Raster Data Models 9/18/2018

Contents of Lecture. Surface (Terrain) Data Models. Terrain Surface Representation. Sampling in Surface Model DEM

Raster Analysis. Overview Neighborhood Analysis Overlay Cost Surfaces. Arthur J. Lembo, Jr. Salisbury University

Rasters are: The Raster Data Model. Cell location specified by: Why squares? Raster Data Models 9/25/2014. GEO327G/386G, UT Austin 1

The Raster Data Model

Curriculum at a Glance Kindergarten- Grade 5

Representing Geography

Vector Data Analysis Working with Topographic Data. Vector data analysis working with topographic data.

GIS: Raster Analysis

Geographic Surfaces. David Tenenbaum EEOS 383 UMass Boston

Surface Analysis with 3D Analyst

PART 1. Answers module 6: 'Transformations'

GIS IN ECOLOGY: MORE RASTER ANALYSES

Big Mathematical Ideas and Understandings

Learn the various 3D interpolation methods available in GMS

Stream network delineation and scaling issues with high resolution data

Data can be in the form of numbers, words, measurements, observations or even just descriptions of things.

Suitability Modeling with GIS

Soil texture: based on percentage of sand in the soil, partially determines the rate of percolation of water into the groundwater.

GEOGRAPHIC INFORMATION SYSTEMS Lecture 02: Feature Types and Data Models

Digital Elevation Model & Surface Analysis

Geostatistics 3D GMS 7.0 TUTORIALS. 1 Introduction. 1.1 Contents

3. Data Structures for Image Analysis L AK S H M O U. E D U

TIPS4Math Grades 4 to 6 Overview Grade 4 Grade 5 Grade 6 Collect, Organize, and Display Primary Data (4+ days)

WHOLE NUMBER AND DECIMAL OPERATIONS

LECTURE 2 SPATIAL DATA MODELS

Longley Chapter 3. Representations

APS Sixth Grade Math District Benchmark Assessment NM Math Standards Alignment

Thoughts on Representing Spatial Objects. William A. Huber Quantitative Decisions Rosemont, PA

Spa$al Analysis and Modeling (GIST 4302/5302) Guofeng Cao Department of Geosciences Texas Tech University

Houghton Mifflin MATHEMATICS Level 5 correlated to NCTM Standard

Lab 10: Raster Analyses

Computation of Slope

Interactive Math Glossary Terms and Definitions

Computer Database Structure for Managing Data :-

Data handling 3: Alter Process

Downloaded from

Number and Operation Standard #1. Divide multi- digit numbers; solve real- world and mathematical problems using arithmetic.

SHAPE, SPACE & MEASURE

Using GIS To Estimate Changes in Runoff and Urban Surface Cover In Part of the Waller Creek Watershed Austin, Texas

Decimals should be spoken digit by digit eg 0.34 is Zero (or nought) point three four (NOT thirty four).

Spatial Interpolation & Geostatistics

Number/Computation. addend Any number being added. digit Any one of the ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9

Lesson 4A overview. Introduction to Map Algebra (4A) Map Algebra functions (4B)

Statistical surfaces and interpolation. This is lecture ten

Channel Conditions in the Onion Creek Watershed. Integrating High Resolution Elevation Data in Flood Forecasting

Does Not Meet State Standard Meets State Standard

Spatial Analysis and Modeling (GIST 4302/5302) Guofeng Cao Department of Geosciences Texas Tech University

Read, write compare and order numbers beyond 1000 in numerals and words Read Roman numerals to 100 and understand how they have changed through time

Beyond The Vector Data Model - Part Two

University of West Hungary, Faculty of Geoinformatics. Béla Márkus. Spatial Analysis 5. module SAN5. 3D analysis

Tutorial: Using SAGA for Least Cost Path Analysis

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8

Spatial Interpolation - Geostatistics 4/3/2018

Transcription:

Geographic Information Systems (GIS) Spatial Analyst [10] Dr. Mohammad N. Almasri 1 Preface POINTS, LINES, and POLYGONS are good at representing geographic objects with distinct shapes They are less good with geographic objects that are distributed continuously across a surface Think of temperature. You cannot go someplace where there is not one. It is cold in some spots and hot in others, but temperature itself is continuous So is elevation; so are land cover, noise levels, and chemical concentrations 2 1

Preface ArcGIS Spatial Analyst provides a way to represent and analyze geographic objects of this kind Instead of drawing them as shapes, it divides the surface on which they are distributed into a matrix of identically sized square cells This way of representation is called a raster Each cell is filled in with a number that stores the object s value at that location 3 Raster Data So to represent average daily temperature in degrees centigrade, the cells would hold numbers like 13, 20, 26, and so on The area bordered by the red box would be divided into many more cells than are shown here 4 2

Raster Data A raster is a spatial data method that defines space as an array of equally sized cells arranged in rows and columns, and composed of single or multiple bands 5 Raster Data Each cell contains an attribute value and location coordinates Raster coordinates are contained in the ordering of the matrix. Groups of cells that share the same value represent the same type of geographic feature 6 3

Raster and Vector Data Raster data are described by a cell grid, one value per cell Vector Raster Point Line Polygon 7 Conversion from Vectors Polygons 8 4

Definition of a Raster Number of rows Cell size Number of columns 9 Raster Data In a raster, surface is treated as continuous Each location is represented as a cell Cells can be organized into a matrix of rows and columns called a raster Each raster contains cells (pixels) with numeric values attached, and these represent some kind of geographic value The cells' numeric values can represent any kind of information about the geography an elevation measurement in meters 10 5

Raster Data 11 NODATA Cells When data values are not available for particular cells, the latter are described as NODATA cells NODATDA cells differ from cells containing a zero in that a zero value is considered to be data NODATA cells are represented as blank cells 12 6

NODATA Cells 13 Definition of a Raster Grid Cell size represents the minimum geographic unit size and defines spatial resolution of the grid Therefore, a high resolution grid contains a greater number of cells per geographic area than a grid of lower resolution 14 7

Resolution of Rasters This size for a raster cell depends on the data resolution required for your analysis: Small enough to capture details Large enough to store and perform analysis efficiently 15 Resolution of Rasters 16 8

Resolution of Rasters Coarser resolution means loss of data: Larger cells may encompass more than one data value Values that fall within cell get aggregated to one value Save storage space but compromises detail 17 Resolution of Rasters Finer resolution means more accurate information: Smaller cells represent well the reality Less aggregation is necessary Takes up more storage space Changing cells to half current size could require as much as four times the storage space 18 9

Data Representation with a Vector and a Raster Vector (polygon) Raster (250 m) Raster (1,000 m) Nablus Governorate 19 Referencing a Raster In raster analysis, geographic units are regularly spaced, and the location of each unit is referenced by row and column position A raster consists of data elements referenced by row and column. The number of rows may or may not be equal to the number of columns Consequently, a raster may be a square or a rectangle 20 10

Referencing a Raster The column in a raster also increases to the right, yet the rows increase downward All cells in a raster have a positive position referenced, following the left-to-right and top-bottom data scan 21 Referencing a Raster Y 3 2 1 1 2 3 4 5 X Rows 1 2 3 Columns 1 2 3 4 5 Note the difference in the referencing structure 22 11

Raster Types Every cell in a raster is an undividable unit and must be assigned a value Depending on the nature of the raster, the value assigned to a cell can be an integer or a floating 1 5 8 2 3 4 7 6 9 10 6 0 16 9 4 19 1.5 2.2 0.5 4.1 9.4 0.0 1.2 9.9 4.5 3.9 2.7 6.3 7.5 8.9 2.1 3.2 23 Grid Types There are two types of grids: Integer grids (store cell values as integers) Have a value attribute table (VAT) It stores the codes and categories of the grid cells Floating grids (store values with decimal points) Have no theme attribute table 24 12

The Raster Data Structure Raster size (and cell size) is defined by the following: Number of rows and number of columns Top, left, bottom and right coordinates Raster values Real (floating decimal point) Integer (may have associated attribute table) 25 The Raster Data Structure 100 (row = 2, column = 4) (X = 50, Y = 20) 26 13

A raster dataset stores a two-dimensional matrix with values for each cell Raster Datasets The value associated with a cell defines the class, group, or measure at the cell position Cells of the same zone do not have to be geographically connected 27 Raster Datasets The VAT contains at least two fields, the value at each cell and the count (frequency of value occurrences) The code value occurs many times in the raster, but only once in the attribute table, which stores additional attributes for the code This design reduces storage and simplifies updating 28 14

Raster Datasets 29 Raster Datasets A single change to an attribute in the VAT table can be applied to several hundred or thousands of instances of that value 30 15

Types of Raster Data Each cell in a raster has one value. The cell values in a raster can represent one of the following four general types of data: Nominal data Ordinal data Interval data Ratio data 31 Types of Raster Data Nominal Data 4 4 4 2 2 2 2 1 4 3 4 2 1 1 4 1 3 1 1 4 2 3 3 1 3 1 2 2 4 2 2 2 2 3 1 1 1 1 2 2 2 3 2 4 2 4 2 2 4 2 1 1 2 2 1 1 2 3 3 3 3 2 2 4 1 2 3 4 Agriculture Built up Commercial Industrial 32 16

Types of Raster Data Nominal Data A value of nominal data identifies one entity from another These values establish the group, class, member, or category with which the geographic entity at the position of the cell is associated These values are qualities, not quantities, with no relation to a fixed point or a linear scale and no relation to each other 33 Coding schemes for land use and soil types qualify as a nominal measurement Types of Raster Data Ordinal Data A value of ordinal data determines the rank of an entity versus other entities These measurements show position, such as first, second, or third But they do not establish magnitude or relative proportions. In other words, you cannot infer a quantitative difference, such as how much an entity is larger, higher, or denser than the others 34 17

Types of Raster Data Ordinal Data very good good moderate poor 35 Types of Raster Data Interval Data A value of interval data represents a measurement on a scale such as time and ph However, these values are not relative to a true zero point 36 18

Types of Raster Data Ratio Data A value of ratio data represents a measurement on a scale with a fixed and meaningful zero point such as rainfall, population, age, distance, weight, and volume You can make relative comparisons 37 Data Value Assignment The assignment of data values can follow different methods, each of which may result in a different grid definition The three most widely adopted methods are the centroid, predominant type, and most important type 38 19

Original map (vector) Data Value Assignment Centroid Method 1 1 1 2 2 2 1 1 2 2 1 2 Assigned values (raster) The centroid method assigns the value to a cell according to the observed value at its geometric center Problems: the centroid may represent a minority such as the cell at the upper right corner 39 Data Value Assignment Predominant Type Method 1 1 1 1 2 2 1 1 2 2 1 1 Original map (vector) Assigned values (raster) This method assigns cell value based on the largest area in the cell The predominant type method involves more complicated computation than the centroid method because the area of every type must be computed for every cell 40 20

Original map (vector) Data Value Assignment Most Important Type Method 2 2 1 2 2 2 2 1 2 2 2 2 Assigned values (raster) In this method, the cell value depends on the occurrence of the most important surface type For instance, a public health agency may need to report the location of contagious disease cases regardless of numbers per cell 41 Data Value Assignment Method Comparison Predominant Type Method 1 1 1 1 2 2 1 1 2 2 1 1 2 2 1 2 2 2 2 1 1 1 1 2 2 2 1 1 42 2 2 2 2 2 2 1 2 Most Important Type Method Centroid Method 21

Raster Operations Common operations in raster analysis consist of: Local functions that work on every single cell Focal functions that process the data of each cell based on the information of a specified neighborhood Zonal functions that provide operations that work on each group of cells of identical values 43 Global functions that work on a cell based on the data of the entire grid RasterOperations Local Functions Local functions process a raster on a cell-by-cell basis That is, each cell is processed based solely on its own value without reference to the values of other cells In other words, the output value is a function of the value of the cell being processed 44 22

Raster Operations Local Functions 1 1 1 1 3 3 3 3 2 2 0 1 3 = 6 6 0 3 2 1 1 6 3 3 Input raster Output raster Multiplier factor 45 Raster Operations Local Functions 2 0 1 1 2 3 0 4 4 2 3 Input raster 2 0 2 2 2 6 0 8 8 6 9 Output raster 1 1 2 2 1 2 2 2 2 3 3 3 Multiplier raster 46 23

Raster Operations Local Functions Local functions are not limited to arithmetic computations In the next slide, the maximum value for each cell is to be identified from two grids 47 Raster Operations Local Functions MAX 2 0 1 1 2 3 0 4 4 2 3 1 1 2 2 1 2 2 3 2 2 3 3 Input raster 1 Input raster 2 2 1 2 2 2 3 2 4 4 3 3 Output raster 48 24

Raster Operations Focal Functions Focal functions process cell data depending on the values of neighboring cells For instance, computing the sum of a specified neighborhood and assigning the sum to the corresponding cell of the output grid is the focal sum function 49 Raster Operations Focal Functions 50 25

Raster Operations Focal Functions Rectangular Neighboring cells The rectangle neighborhood is specified by providing a width and a height in either cells or map units Only the cells whose centers fall within the defined object are processed as part of the rectangle neighborhood The default rectangle neighborhood is a square with a height and width of three cells 51 Rectangular Neighboring Raster Operations Focal Functions The x and y positions for the processing cell (the output) within the neighborhood, with respect to the upper left corner of the neighborhood, is determined by the following equation 52 26

Raster Operations Focal Functions 2 0 1 1 2 3 0 4 4 2 2 3 1 1 3 2 Input raster 7 8 9 6 13 16 16 11 13 18 20 14 8 13 13 10 Output raster: Focal sum 3 3 53 Raster Operations Focal Functions 2 0 1 1 2 3 0 4 4 2 2 3 1 1 3 2 Input raster 7 8 9 6 13 16 16 11 13 18 20 14 8 13 13 10 Output raster: Focal sum 3 3 54 27

Raster Operations Focal Functions 2 0 1 1 2 3 0 4 4 2 2 3 1 1 3 2 Input raster 7 8 9 6 13 16 16 11 13 18 20 14 8 13 13 10 Output raster: Focal sum 3 3 55 Raster Operations Focal Functions 2 0 1 1 2 3 0 4 4 2 2 3 1 1 3 2 Input raster 7 8 9 6 13 16 16 11 13 18 20 14 8 13 13 10 Output raster: Focal sum 3 3 56 28

Raster Operations Focal Functions 2 0 1 1 2 3 0 4 4 2 2 3 1 1 3 2 Input raster 7 8 9 6 13 16 16 11 13 18 20 14 8 13 13 10 Output raster: Focal sum 3 3 57 Raster Operations Focal Functions 2 0 1 1 2 3 0 4 4 2 2 3 1 1 3 2 1.8 1.3 1.5 1.5 2.2 1.8 1.8 1.8 2.2 2.0 2.2 2.3 2.0 2.2 2.2 2.5 Input raster Output raster: Focal mean Focal mean (3 3): this is the smoothing function to obtain the moving average in such a way that the value of each cell is changed into the average of the specified neighborhood 58 29

Raster Operations Focal Functions Neighboring cells can be one of the following: 1 2 3 4 5 6 Rectangle Circle Annulus Wedge Irregular Weight 59 Raster Operations Annulus Neighborhood 60 30

Raster Operations Circle Neighborhood 61 Raster Operations Wedge Neighborhood A wedge is a pie-shaped neighborhood specified by a radius, a starting angle, and an ending angle 62 31

Raster Operations Irregular Neighborhood 63 Raster Operations Irregular Neighborhood 64 32

Raster Operations Focal Functions Other commonly employed focal functions include focal standard deviation, focal maximum, focal minimum, and focal range Focal flow function depends on the neighboring cells to specify the direction of flow The size and shape of the neighborhood can be defined using a prespecified method 65 Raster Operations Zonal Functions Zonal functions process the data of a grid in such a way that cells of the same zone are analyzed as a group A zone consists of a number of cells that may or may not be contiguous A typical zonal function requires two grids a zone grid which defines the size, shape, and location of each zone, and a value grid which is to be processed for analysis In the zone grid, cells of the same zone are coded with the same value, while different zones are assigned different zone values 66 33

Raster Operations Zonal Functions Zonal Max 2 2 1 1 1 2 3 4 2 3 3 1 5 6 7 8 3 2 1 2 3 4 1 1 2 2 5 5 5 5 Zone raster Value raster 5 5 8 8 5 7 7 8 7 5 8 8 5 5 Output raster 67 Raster Operations Global Functions For global functions, the output values of each cell is a function of the entire grid An example is the Euclidean distance function which computes the distance from each cell to the nearest source cell Source cells are defined in an input grid Distance is to be considered from the centers of cells 68 34

Raster Operations Global Functions 1 1 1 2.0 1.0 0.0 0.0 1.4 1.0 1.0 0.0 2 1.0 0.0 1.0 1.0 1.4 1.0 1.4 2.0 Source raster Output raster 69 Raster Operations Global Functions Global functions based on the Euclidean distance measurement assume that the distance between every pair of adjacent cells is a constant In reality, the cost for traveling through two neighboring cells may be quite different from that for two other neighboring cells In other words, the travel cost may vary from place to place depending on surface characteristics or transportation accessibility Thus, the cost distance function is useful for adjusting the distance measurement by a cost grid 70 35

Grid Operations Global Functions 1 1 1 2 Source raster 5.0 3.0 0.0 0.0 3.5 2.5 2.8 0.0 1.5 0 2.5 2.0 2.1 3.0 2.8 4.0 2 2 4 4 4 4 3 3 2 1 4 1 2 5 3 3 Cost raster (cost to travel through a cell) Output raster 71 Geographic Information Systems (GIS) Spatial Analyst Raster Calculator Dr. Mohammad N. Almasri 72 36

The Raster Calculator The Raster Calculator provides a powerful tool for performing multiple tasks You can type in Map Algebra to perform mathematical calculations using operators and functions, set up selection queries, or type in Spatial Analyst function syntax 73 The Raster Calculator 74 37

The Raster Calculator Arithmetic operators Arithmetic operators allow the addition, subtraction, multiplication, and division of two rasters or numbers, or a combination of the two + = 75 The Raster Calculator Arithmetic operators 5 6 7 6-3 3 2 4 = 2 3 5 2 Precipitation - Losses (Evaporation, Infiltration) = Runoff 76 38

Boolean operators use Boolean logic TRUE or FALSE on input rasters on a cell-by-cell basis Output values of TRUE are written as 1 and FALSE as 0 Boolean operators: And, Or, Xor, Not The Raster Calculator Boolean Operators 77 The Raster Calculator Boolean Operators And: Finds where values are true (nonzero) in the cells of both input rasters Or: Finds where nonzero values are present in the cells of one or both input rasters Xor: Finds where nonzero values are present in the cells of one input raster or another input raster, but not both Not: Finds where nonzero values are not present in the cells of a single input raster (where zero values are present) 78 39

The Raster Calculator Boolean operators And (&) 79 The Raster Calculator Boolean operators Or (l) 80 40

The Raster Calculator Boolean operators Xor (!, ^) Finds where nonzero values are present in the cells of any raster but not both rasters at the same time 81 The Raster Calculator Boolean operators Not (~) Finds where zero values are present 82 41

The Raster Calculator Relational operators Relational operators evaluate specific relational conditions If a condition is TRUE, the output is assigned 1 If a condition is FALSE, the output is assigned 0 Relational operators: ==, >, <, <>, >=, <= 83 The Raster Calculator Relational operators 84 42

A logical query on two overlaid grids (A and B) In grid A, check for cells with values less than or equal to 2 In grid B, check for cells with values equal to 3 Spatially corresponding cells that meet both conditions are assigned the value 1. All other cells are assigned 0 The results of the query are stored in grid C The Raster Calculator Relational operators 85 The Raster Calculator Relational operators 86 43

The Raster Calculator Relational operators 87 The Raster Calculator Mathematical Functions Mathematical functions are applied on the values of a single layer 88 44

The Raster Calculator Mathematical Functions 89 Geographic Information Systems (GIS) Spatial Analyst Distance Dr. Mohammad N. Almasri 90 45

Distance What are distance mapping functions? The distance mapping functions are global functions. They compute all output raster dataset where the output value at each location is potentially a function of all the cells in the input raster datasets There are several distance mapping tools for measuring both straight line distance and distance measured in terms of other factors, such as the cost to travel over the landscape 91 Distance Why It is Useful to Map Distance? By mapping distance you can find out information such as the distance to the nearest hospital from certain areas, or find all fire hydrants within 500 meters from a burning building Alternatively, you could find the shortest or least-cost path from one location to another based on some cost factor 92 46

Distance The source The source identifies the location of the objects of interest such as wells, stations and so on If the source is a raster, it must contain only the values of the source cells while all other cells must be NoData If the source is a feature, it will internally be transformed into a grid when you run the function 93 Distance Straight Line Distance Functions The Straight Line Distance function measures the straight line distance from each cell lo the closest source The distance is measured from cell center to cell center The Straight Line Allocation function assigns each cell the value of the source to which it is closest The nearest source is determined by the Straight Line Distance The Straight Line Direction function computes the direction of each cell to the closest source, measured in degrees Example of usage: What is the direction to the closest town? 94 47

Distance Straight Line Distance Functions Keep in mind that the Straight Line Distance functions give you information according to Euclidean, or straight line distance 95 Distance Straight Line Distance Function We need to find out the raster of the distance to the closest source locations 100-m cell size grid 96 48

Distance Straight Line Distance Functions 97 Distance Straight Line Distance Functions Cell size = 1 m 98 49

Distance Straight Line Allocation raster dataset Each cell value denotes the source ID for which the cell itself is the closest to 99 Distance Straight Line Allocation raster dataset 100 50

Distance Straight Line Direction raster dataset The Straight Line Direction raster contains the direction from each cell to the nearest source Thus, you start from a cell, follow the direction to get to the next cell and so on 101 Distance Source Distribution 102 51

Distance Straight Line Distance Functions 103 Distance Straight Line Allocation raster dataset 104 52

Distance Straight Line Direction raster dataset 105 Distance Cost Weighted Distance Functions What is the cost weighted distance mapping? Cost weighted distance mapping finds the least accumulative cost from each cell to the nearest cheapest source. Cost can be money, time, or preference The functions that perform cost weighted distance mapping compute the accumulative cost of traveling from each cell to the nearest source, based on the cell s distance from each source and the cost to travel through it 106 53

Distance Cost Weighted Distance Functions Why use the cost weighted distance function? Cost weighted distance modeling is useful whenever movement is based on geographic factors, such as animal migration studies or consumer travel behavior Cost weighted distance may also be used to minimize construction costs for routing new roads or pipelines 107 Distance Cost Weighted Distance Functions The straight line distance between two points is not necessarily the best. In the figure, the shortest path over the mountain takes three hours. The longer path around takes two hours If time was a cost, then the route with the longer distance should be taken It may take longer to travel over the mountain due to steep slopes, so steep slopes should be given a higher cost However, the aim may be to climb over the mountain. Applying cost weighted distance enables you to specify preferences in your input data 108 54

Distance Cost Weighted Distance Functions Allocation 109 Distance Cost Weighted Distance Functions Cost 110 55

Distance Cost Weighted Distance Functions Cumulative 111 Distance Cost Weighted Distance Functions Direction 112 56

Geographic Information Systems (GIS) Spatial Analyst Interpolation Dr. Mohammad N. Almasri 113 Interpolation Why interpolate to raster? Visiting every location in a study area to measure the topographic elevation or rainfall depth is indeed difficult, time consuming and expensive Instead, dispersed sample input point locations can be selected and a predicted value can be assigned to all other locations The assumption that makes interpolation a viable option is that spatially distributed objects are spatially correlated 114 57

Interpolation For instance, if it is raining on one side of the street, you can predict with a high level of confidence that it is also raining on the other side of the street You would be less sure if it was raining across town and less confident still about the state of the weather in the neighboring town Using this analogy, it is easy to see that the values of points close to sampled points are more likely to be similar to those that are further apart This is the basis of interpolation 115 Interpolation Methods The interpolation method that will be considered in this presentation is the Inverse Distance Weighted (IDW) It makes certain assumptions about how to determine the best estimated values No matter which method is selected, however, the more input points and the greater their distribution, the more reliable the results will be 116 58

Inverse Distance Weighted Method (IDW) IDW estimates cell values by averaging the values of sample data points in the vicinity of each cell The closer a sampled point is to the center of the cell being estimated, the more influence or weight it has in the averaging process That is, IDW method assumes that each interpolation point has a local influence that diminishes with distance 117 Inverse Distance Weighted Method (IDW) Search Radius The interpolated point is controlled by applying a search radius This radius limits the number of input points that can be used for calculating the value at each interpolated cell The weighting function is the following: w(d)= 1/d p where d is the distance and p is the power A higher power results in less influence from distant points 118 i 1 n i 1 Z n Z i w w i i 59

Inverse Distance Method (IDW) Power By defining a high power, more emphasis is placed on the nearest points By defining a lower power, more influence is placed on the points that are further away With increasing the power, the decrease in weight per change in power will be higher in remote points than in the close ones A power of 2 is most commonly used and is the default 119 Inverse Distance Method (IDW) Fixed Search Radius 120 60

Inverse Distance Method (IDW) Fixed Search Radius A fixed search radius requires a distance and a minimum number of points The radius is used to determine the sampling points The minimum number of points indicates the minimum number to use within the neighborhood All the measured points that fall within the radius will be used in the calculation of each interpolated cell When there are fewer sampled points than the specified minimum number of points, the search radius will increase until it can encompass the minimum number of points 121 Inverse Distance Method (IDW) Variable Search Radius 122 61

Inverse Distance Method (IDW) Variable Search Radius With a variable search radius, the number of points used in calculating the value of the interpolated cell is specified, which makes the radius vary for each interpolated cell, depending on how far it has to search around each interpolated cell to reach the specified number of input points You can also specify a maximum distance, in map units, that the search radius cannot exceed If the radius for a particular neighborhood reaches the maximum distance before obtaining the specified number of points, the prediction for that location will be performed on the number of measured points within the maximum distance 123 Inverse Distance Method (IDW) Barrier A barrier is a polyline dataset used as a break that limits the search for input sample points A polyline can represent an interruption in a landscape such as a cliff Only those input sample points on the same side of the barrier as the current processing cell will be considered 124 62

Inverse Distance Method (IDW) Fixed versus Variable Search Radius Fixed radius Specify the radius Specify the minimum number of points ArcMap uses all the points within the search radius if the number equals or more the minimum specified Otherwise, the search radius will be extended until getting all the minimum points 125 Variable radius Specify the number of points ArcMap varies the radius until encompassing all the points If you specify a maximum radius then ArcMap will consider only these within the radius area Inverse Distance Method (IDW) 126 63

Inverse Distance Method (IDW) Power=2 Power=5 Power=10 127 Geographic Information Systems (GIS) Spatial Analyst Contours Dr. Mohammad N. Almasri 128 64

Contours Contours are polylines that connect points of equal value such as elevation, temperature, precipitation, or pollution The distribution of the polylines shows how values change across a surface Where there is a little change in a value, the polylines are spread farther apart. Where the values rise or fall rapidly, the polylines are closer together 129 Contours Why Create Contours? By following the polyline of a specific contour, you can identify which locations have the same value Contours are also a useful surface representation because they allow you to simultaneously visualize flat and steep areas With contours you can identify the level of variability in the data with space 130 65

Contours A Hypothetical Temperature Surface The following points represent measurements of temperature through out a specific area Create the contour map of the temperature for the area 131 Contours A Hypothetical Temperature Surface IDW 132 66

Geographic Information Systems (GIS) Spatial Analyst Cell Statistics Dr. Mohammad N. Almasri 133 Majority 134 67

Majority Majority uses multiple input rasters to determine the majority value (the value that appears most often) on a cell-by-cell basis within the Analysis window The order of input is irrelevant in the Majority expression When there is more than one majority value for a cell location, the output for that location is NoData A reasonable expression should consist of at least three input rasters; however, the command will work on a single input raster (creating a copy of that raster) 135 Majority If only two rasters are used as input, any location where the values on the rasters are different will be written as NoData Since there are only two different values from which to choose, there is no majority value If a cell location contains NoData on any of the input rasters, that location will be assigned NoData on the output 136 68

Minority Uses multiple input rasters to determine the minority value (the value that appears least often) on a cell-by-cell basis within the Analysis window 137 Maximum Uses multiple input rasters to determine the maximum value on a cellby-cell basis within the Analysis window 138 69

Minimum Uses multiple input rasters to determine the minimum value on a cell-by-cell basis within the Analysis window 139 Mean Uses multiple input rasters to determine the mean value on a cell-by-cell basis within the Analysis window 140 70

Median Uses multiple input rasters to determine the median value on a cell-by-cell basis If the number of inputs is odd, the median value is calculated by ranking the values and selecting the middle value If the number of inputs is even, the values will be ranked and the middle two values will be averaged. This value will be truncated to an integer if all the input rasters are of integer type 141 Sum Outputs the sum of all input values on a cellby-cell basis within the Analysis window 142 71

Variety Uses multiple input rasters to determine the variety of the values (the number of unique values) on a cell-by-cell basis within the Analysis window 143 Lowest Position Determines the position of a raster with the minimum value in a set of rasters The order of inputs is relevant for the Lowest Position tool 144 72

Highest Position Determines, on a cell-by-cell basis within the Analysis window, the position of the input raster with the maximum value in the argument list 145 Less Than 73

Geographic Information Systems (GIS) Spatial Analyst Slope, Aspect, and Viewshed [10-9] Dr. Mohammad N. Almasri 147 Digital Elevation Models DEM DEM (Digital Elevation Model) is an array (in raster format) representing the ground surface topography (elevation) DEM is generally used by the Spatial Analyst to perform many tasks among them the viewshed analysis 148 74

Surface Analysis Slope The Slope function calculates the maximum rate of change between each cell and its neighbors a b c d e f g h i dz dx dz dy (a 2d g) - (c 2f i) 8* x_mesh_spacing (g 2h i) - (a 2b c) 8* y_mesh_spacing rise run dz dx 2 dz dy rise deg atan run 2 149 Surface Analysis Hydrologic Slope Steepest Descent 30 30 80 74 63 69 67 56 60 52 48 80 74 63 69 67 56 60 52 48 Slope = 67 48 30 2 0.45 67 52 30 0.50 150 75

Surface Analysis Aspect Aspect is the direction of slope The value of each cell in an aspect dataset indicates the direction the cell's slope faces 151 Aspect Why Using Aspect? Find all north-facing slopes on a mountain as part of a search for the best slopes for ski runs Calculate the solar illumination for each location in a region as part of a study to determine the diversity of life at each site Find all southerly slopes in a mountainous region to identify locations where the snow is likely to melt first as part of a study to identify those residential locations likely to be hit by runoff first 152 76

153 30 a b c 80 74 63 d e f 69 67 56 g h i 60 52 48 145.2 o Surface Analysis Aspect dz dx dz dy (a 2d g) - (c 2f i) 8* x_mesh_spacing (80 2 *69 60) (63 2 *56 24) 8*30 0.229 (g 2h i) - (a 2b c) 8* y_mesh_spacing (60 2 *52 48) (80 2*74 63) 2 2 Slope 0.229 0.329 8*30 0.401 0.329 o atan(0.401) 21.8 0.229 o o Aspect atan 34.8 180 0.329 o 145.2 Surface Analysis Aspect 154 77

Viewshed Viewshed analysis uses the elevation value of each cell of the DEM to determine visibility to or from a particular cell Viewsheds can be calculated using an individual point or multiple points For example, when locating a landfill, the analysis can determine from where the landfill is visible to keep it hidden from view 155 Viewshed Viewshed identifies the cells in an input raster that can be seen from one or more observation points or lines If you have only one observer point, each cell that can see that observer point is given a value of 1 All cells that cannot see the observer point are given a value of 0 156 78