L7 Raster Algorithms

Similar documents
Terrain Analysis. Using QGIS and SAGA

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

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

Geographic Surfaces. David Tenenbaum EEOS 383 UMass Boston

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

Applied Cartography and Introduction to GIS GEOG 2017 EL. Lecture-7 Chapters 13 and 14

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

Training i Course Remote Sensing Basic Theory & Image Processing Methods September 2011

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

Raster Data: Digital Elevation Model Catchment Delineation

POSITIONING A PIXEL IN A COORDINATE SYSTEM

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

Raster GIS. Raster GIS 11/1/2015. The early years of GIS involved much debate on raster versus vector - advantages and disadvantages

Lecture 21 - Chapter 8 (Raster Analysis, part2)

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

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

Dijkstra's Algorithm

GEOGRAPHIC INFORMATION SYSTEMS Lecture 24: Spatial Analyst Continued

APPENDIX E2. Vernal Pool Watershed Mapping

Lecture 06. Raster and Vector Data Models. Part (1) Common Data Models. Raster. Vector. Points. Points. ( x,y ) Area. Area Line.

GEOGRAPHIC INFORMATION SYSTEMS Lecture 25: 3D Analyst

Geometric Rectification of Remote Sensing Images

Representing Geography

Blacksburg, VA July 24 th 30 th, 2010 Georeferencing images and scanned maps Page 1. Georeference

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

Getting Started with Spatial Analyst. Steve Kopp Elizabeth Graham

Watershed Sciences 4930 & 6920 GEOGRAPHIC INFORMATION SYSTEMS

Getting Started with Spatial Analyst. Steve Kopp Elizabeth Graham

Lecture 4: Digital Elevation Models

Geographical Information System (Dam and Watershed Analysis)

COMPARISON OF TWO METHODS FOR DERIVING SKELETON LINES OF TERRAIN

Raster GIS applications

GIS IN ECOLOGY: MORE RASTER ANALYSES

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

Tools. (figure 3A) 3) Shaded Relief Derivative. c. HydroSHED DS DEM

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

Terrain correction. Backward geocoding. Terrain correction and ortho-rectification. Why geometric terrain correction? Rüdiger Gens

Improved Applications with SAMB Derived 3 meter DTMs

Lab 11: Terrain Analyses

LAB #7 Creating TIN and 3D scenes (ArcScene) GISC, UNIVERSITY OF CALIFORNIA BERKELEY

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

GEOGRAPHIC INFORMATION SYSTEMS Lecture 02: Feature Types and Data Models

3D Terrain Modelling of the Amyntaio Ptolemais Basin

Lab 11: Terrain Analyses

IMPROVING 2D CHANGE DETECTION BY USING AVAILABLE 3D DATA

Georeferencing in ArcGIS

Geoprocessing and georeferencing raster data

Georeferencing & Spatial Adjustment

COORDINATE TRANSFORMATION. Lecture 6

The Raster Data Model

DIGITAL TERRAIN MODELLING. Endre Katona University of Szeged Department of Informatics

B A

A Comparison of the Performance of Digital Elevation Model Pit Filling Algorithms for Hydrology

GISC9312- Geospatial Visualization

Stream network delineation and scaling issues with high resolution data

Raster Data Models 9/18/2018

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

Delineating Watersheds from a Digital Elevation Model (DEM)

Georeferencing & Spatial Adjustment 2/13/2018

Review of Cartographic Data Types and Data Models

The Problem. Georeferencing & Spatial Adjustment. Nature Of The Problem: For Example: Georeferencing & Spatial Adjustment 9/20/2016

J.Welhan 5/07. Watershed Delineation Procedure

The Problem. Georeferencing & Spatial Adjustment. Nature of the problem: For Example: Georeferencing & Spatial Adjustment 2/4/2014

By Colin Childs, ESRI Education Services. Catalog

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

Alberta-wide ALOS DSM "ALOS_DSM15.tif", "ALOS_DSM15_c6.tif"

Surface Creation & Analysis with 3D Analyst

RiparianZone = buffer( River, 100 Feet )

CORRECTING RS SYSTEM DETECTOR ERROR GEOMETRIC CORRECTION

Spatial Analysis (Vector) II

Introduction to the Image Analyst Extension. Mike Muller, Vinay Viswambharan

Generate Digital Elevation Models Using Laser Altimetry (LIDAR) Data. Christopher Weed

Neighbourhood Operations Specific Theory

Final project: Lecture 21 - Chapter 8 (Raster Analysis, part2) GEOL 452/552 - GIS for Geoscientists I

TOPOGRAPHIC NORMALIZATION INTRODUCTION

Introduction to 3D Analysis. Jinwu Ma Jie Chang Khalid Duri

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

Learn how to delineate a watershed using the hydrologic modeling wizard

Overview. Image Geometric Correction. LA502 Special Studies Remote Sensing. Why Geometric Correction?

Field-Scale Watershed Analysis

Surface Analysis with 3D Analyst

Exercise Lab: Where is the Himalaya eroding? Using GIS/DEM analysis to reconstruct surfaces, incision, and erosion

Investigation of Sampling and Interpolation Techniques for DEMs Derived from Different Data Sources

Learn how to delineate a watershed using the hydrologic modeling wizard

Computation of Slope

Watershed Analysis and A Look Ahead

v Prerequisite Tutorials GSSHA Modeling Basics Stream Flow GSSHA WMS Basics Creating Feature Objects and Mapping their Attributes to the 2D Grid

Correction and Calibration 2. Preprocessing

BRIEF EXAMPLES OF PRACTICAL USES OF LIDAR

Chapters 1 7: Overview

Spatial Analysis Exercise GIS in Water Resources Fall 2011

Import, view, edit, convert, and digitize triangulated irregular networks

[Youn *, 5(11): November 2018] ISSN DOI /zenodo Impact Factor

IMPROVING THE ACCURACY OF DIGITAL TERRAIN MODELS

Tutorial (Intermediate level): Dense Cloud Classification and DTM generation with Agisoft PhotoScan Pro 1.1

Creating Surfaces. Steve Kopp Steve Lynch

LIDAR and Terrain Models: In 3D!

AUTOMATIC EXTRACTION OF TERRAIN SKELETON LINES FROM DIGITAL ELEVATION MODELS

Spatial Data Models. Raster uses individual cells in a matrix, or grid, format to represent real world entities

Transcription:

L7 Raster Algorithms NGEN6(TEK23) Algorithms in Geographical Information Systems by: Abdulghani Hasan, updated Nov 216 by Per-Ola Olsson

Background Store and analyze the geographic information: Raster data or Vector data.

Content 1. Introduction (raster data and analyses) 2. Local and regional operators 3. Morphological operators 4. Shaded relief 5. Resampling 6. Flow analysis in hydrology

Vector vs. Raster Algorithms described for vector data (distances, area of polygon, pointin-polygon) are all fairly simple to perform also with raster data. Result is often worse than in the vector case since the resolution of the raster data is not that good

Example of raster data and raster analyses Digital maps Digital Terrain Models (DTM) and Digital Elevation Models (DEM) Images (often aerial or satellite images) Lantmäteriet, terrängkartan

Example of raster data and raster analyses Digital maps Digital Terrain Models (DTM) and Digital Elevation Models (DEM) Images (often aerial or satellite images) Slope DEM

Example of raster data and raster analyses Digital maps Digital Terrain Models (DTM) and Digital Elevation Models (DEM) Images (often aerial or satellite images) SPOT 5

Example of raster data and raster analyses 1. Digital maps Cost analyses finding the path with the lowest cost between locations. Raster version of Dijkstra. Location analyses finding suitable locations e.g. for private houses or factories. Overlay analyses e.g. landcover and soil map. Generalization e.g. morphological operators for simplification.

Example of raster data and raster analyses 2. Digital Terrain Models (DTM) and Digital Elevation Models (DEM) Viewshed analysis e.g. from which locations will a wind power park be visible? Flow analysis hydrology, how will rainfall flow. Shaded relief cartography, to enhance the feeling of topography. Image orthorectification photogrammetry, create orthophotos.

Example of raster data and raster analyses 2. Digital Terrain Models (DTM) and Digital Elevation Models (DEM) Image orthorectification photogrammetry, create orthophotos.

Example of raster data and raster analyses 3. Images (often aerial or satellite images) Resampling georeferencing, transforming raster. Image classification remote sensing, e.g. create land cover map based on spectral properties. Information extraction e.g. extracting roads, buildings etc. in images.

Raster analyses in this lecture 1) Morphological operators This is a basic method for digital maps. Several manipulations and analyses of raster maps are based on morphological operators. (shrink and expand) L9 generalization 2) Shaded relief A shaded relief is created (based on a DEM) for a fictitious sun. This relief is then added to a map to enhance the feeling of topography. 3) Resampling of images To use e.g. a satellite image in a geographic analysis it must be geocoded. Geocoding - resampling of the image to the new geometry. 4) Flow analyses in hydrology All of these operations are regional operations

Local and regional operations All pixels multiplied with 1.2

Local and regional operations Kernel filter Typically a filter is 3x3, 5x5 etc.

Local and regional operations Kernel filter

Local and regional operations Kernel filter

Morphological operators (Dilation with 2x2 kernel) (Erosion with 2x2 kernel) Note that a new raster is created

Shaded relief Enhance the feeling of topography in a map.

Shaded relief Shaded relief DEM Ortophoto Darker is lower

Computing the shaded relief L7 - Raster Algorithms

Computing the shaded relief a and b are constants

Computing the shaded relief UP N

Computing the shaded relief are the partial derivatives of the height (z) from West to East (x) respective from South to North (y). Here we discuss two methods to approximate the partial derivatives: - Steepest gradient approach - Third order approach (Sobel filter)

Approximating the partial derivatives Steepest gradient approach i = columns, j = rows Where dx and dy are distances between pixels (resolution) in the DEM in the two coordinate axis direction respectively, and z is the height for a pixel. Note that -1 is larger than +8. Sign is not important.

Approximating the partial derivatives Steepest gradient approach y-direction y i-1 i+1 i = columns, j = rows J+1; k=+1 j; k= j-1; k=-1 14 11 = 3 15 12 = 3 2 14 = 6 6 x

Approximating the partial derivatives Steepest gradient approach i = columns, j = rows

Approximating the partial derivatives Steepest gradient approach i = columns, j = rows y-direction y i-1; k=-1 i; k= i+1; k=+1 j+1 j-1 The partial derivative dz/dy max dz = -6 m dy = 1 m dz/dx = -6/(2*1) = -.3 x

Approximating the partial derivatives Third order (Sobel filter) approach i-1, j+1 i+1, j+1 i-1, j i+1, j i-1, j-1 i+1, j-1

Approximating the partial derivatives Third order (Sobel filter) approach i-1, j+1 i+1, j+1 Which is the same as a Sobel filter: i-1, j i+1, j i-1, j-1 i+1, j-1

Approximating the partial derivatives Third order (Sobel filter) approach 14 11 = 3 2*(15 12) = 6 2 14 = 6

Approximating the partial derivatives Third order (Sobel filter) approach 14 11 = 3 (3 + 6 + 6)/(8*1) 2*(15 12) = 6 2 14 = 6

Approximating the partial derivatives Third order (Sobel filter) approach 14 11 = 3 (3 + 6 + 6)/(8*1) 2*(15 12) = 6 2 14 = 6.19

Approximating the partial derivatives Steepest gradient approach: Third order (Sobel filter) approach:

Approximating the partial derivatives - row order y x x y

Shaded relief solar horizontal angle L7 - Raster Algorithms

Shaded relief solar horizontal angle L7 - Raster Algorithms

Shaded relief solar horizontal angle L7 - Raster Algorithms

Raster transformation Original grid Transformed grid (here: affine transformation, translation, rotation, different scales in x and y directions)

Raster transformation But a raster shall be like this so we need to resample it. Original grid How do we decide the values of the pixels in the resampled raster? Transformed grid (here: affine transformation)

Resampling method It is important to state what kind of raster data that is used and the application of the resampled data. If the raster data is a digital map (or contain any type of data in nominal or ordinal scale) it is not allowed to do calculations on the raster data values. A recommended resampling method is then nearest neighbour. If the data is an image e.g. remote sensing data (which contain continuous data that is in ratio or interval scale ) it is allowed to do calculations on the raster data values

Nearest neighbour resampling Original grid How do we find the nearest pixel? Transformed grid (here: affine transformation)

Nearest neighbour resampling Compute the distances to all pixels and find the shortest. Original grid This is for one pixel only and for a small grid.

Nearest neighbour resampling Original grid Instead do the inverse of the raster transformation.

Nearest neighbour resampling Original grid Instead do the inverse of the raster transformation.

Nearest neighbour resampling Original grid Resampled grid Instead do the inverse of the raster transformation.

Inverse distance resampling L7 - Raster Algorithms

Inverse distance resampling Must determine the two parameters n and k. Normally, n is set to 4 or 9, which implies that the 4 or 9 closest pixels are used in the interpolation. k is related to the spatial autocorrelation of the data. k = gives an ordinary mean value (among the n pixels) k -> gives a nearest neighbour interpolation. Normally a value of k=2 is used.

Inverse distance resampling n = 4 Original grid Transformed grid (here: affine transformation)

Inverse distance resampling n = 4 2 3 1 4 1 6 k 2 1 6 k

Inverse distance resampling n = 4 2 3 1 4 1 6 k 2 + 1 4 k 3 1 6 k + 1 4 k

Inverse distance resampling n = 4 2 3 1 4 1 6 k 2 + 1 4 k 3 + 1 3 k 1 + 1 1 k 4 1 6 k + 1 4 k + 1 3 k + 1 1 k

Inverse distance resampling n = 4 2 3 1 4 k = 1 6 k 2 + 1 4 k 3 + 1 3 k 1 + 1 1 k 4 1 6 + 1 k 4 + 1 k 3 + 1 k 1 k 1 1 2 + 1 1 3 + 1 1 1 + 1 1 4 1 1 + 1 1 + 1 1 + 1 1 = 1 4 = 2.5

Inverse distance resampling n = 4 2 3 1 4 k = 2 1 6 k 2 + 1 4 k 3 + 1 3 k 1 + 1 1 k 4 1 6 + 1 k 4 + 1 k 3 + 1 k 1 k 1 36 2 + 1 16 3 + 1 9 1 + 1 1 4 1 36 + 1 16 + 1 9 + 1 1 3.62

Inverse distance resampling n = 4 Original grid Transformed grid (here: affine transformation)

Flow analysis in hydrology Flow distribution and flow accumulation is crucial in hydrological modelling. Based on a DEM it is possible to make more reliable estimations of flow over a surface: Estimate the flow distribution from all cells in a DEM to its eight neighbours and compute the accumulated flow. Distributed hydrological model: Water flow is linked to water exchange with the atmosphere (precipitation and evapotranspiration), vegetation cover, and soil properties.

Flow analysis in hydrology How to distribute the flow to other cells. The water from the center cell flows to the neighboring cell with the lowest elevation The water from the center cell is distributed proportionally to a number of neighboring cells with lower elevation

Surface flow algorithms over digital elevation models L7 - Raster Algorithms Single flow direction algorithm SFD Multiple flow direction algorithm MFD 99.6 1 1.7 1 1 99.8 1.4 99.8 98.8 f i 8 tan j j 1 tan i x x for all ß > where i,j = flow directions (1 8), fi = flow proportion ( 1) in direction i, tan ß i = slope gradient between the centre cell and the cell in direction i, and x = variable exponent. x = 1 gives a flow proportional to slope gradients (ß i ) x -> gives a single directional flow.

Form based flow direction algorithm Pilesjö et al. (1998) developed a new model for flow analysis based on the following assumptions: a. From any point in the terrain, the water flows according to the topographic form of the cell and its eight neighbour cells. b. Water is evenly distributed over the grid cells (i.e. homogeneous precipitation). c. The infiltration capacity over the surface is set to zero. d. The surface is bare (e.g. no vegetation). e. The evapotranspiration is set to zero.

Form based flow direction algorithm The topographic form is described with a second order polynomial

Form based flow direction algorithm A convex surface (flow is split)

Form based flow direction algorithm A concave surface one directional flow

Artefacts in real world data Flat area Break line Sink

Flow accumulation I Stream network - Flow to one pixel only

Flow accumulation I Area draining IN to a pixel - Flow to one pixel only 1 2 2 2 4 1 1 1 14 19 1 1 2 2 2 1 1 14 4 1 19 1

Flow accumulation I Flow Accumulation >= 1 Cell Threshold Stream Network for 1 cell Threshold Drainage Area 1 2 2 2 4 1 1 1 14 19 1 1 2 2 2 1 14 4 1 19 1 1

Flow accumulation I Watershed Draining to Outlet Total accumulated flow = 2

Flow accumulation II computing flow accumulation as proposed by Pilesjö et al. (1998): F_in = incoming flow to the cell F_local = flow produced in the cell Step 3. The flow is based on the topographic form of the cell and its eight neighbours. If the form is convex the flow is distributed according to: f i 8 (In this case x=1). If the form is concave the flow is divided between the two cells that is in the direction of the steepest gradient of the second order polynomial surface. tan j j 1 tan i Special treatment of flat areas and sinks in the DEM, see Pilesjö et al. (1998). x x

Flow accumulation comparison Flow accumulation with all flow to the lowest neighbouring cell (ESRI ArcGIS). Flow accumulation according to Pilesjö et al. (1998). The water in the single flow model mainly flows in either X,Y or diagonal direction, while the Pilesjö model allows a more general water flow.