raster data analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · types of raster data...

17
1 Raster Data Analysis Raster Data Analysis Rama Chandra Prasad Lab for Spatial Informatics, IIIT Hyderabad December, 11 th 2015 Raster Model • The raster model divides the earth into rectangular building blocks as grid cells or pixels that are filled with the measured attribute values. • The location of each cell or pixel is defined by its row and column numbers. A unique reference coordinate represents each pixel either at a corner or the centroid • A Raster data resolution is dependent on the pixel or grid size and may vary from sub-meter to many kilometers. Generally, raster data requires less processing than vector data , but it consumes more computer storage space. Scanning remote sensors on satellites store data in raster format • Raster data structures do not provide precise locational information therefore it may seem to be rather undesirable (DeMers, 1997).

Upload: others

Post on 23-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

1

Raster Data AnalysisRaster Data Analysis

Rama Chandra Prasad

Lab for Spatial Informatics, IIIT Hyderabad

December, 11th 2015

Raster Model• The raster model divides the earth into rectangularbuilding blocks as grid cells or pixels that are filled withthe measured attribute values.

• The location of each cell or pixel is defined by its rowand column numbers. A unique reference coordinaterepresents each pixel either at a corner or the centroid

• A Raster data resolution is dependent on the pixel orgrid size and may vary from sub-meter to manykilometers. Generally, raster data requires lessprocessing than vector data, but it consumes morecomputer storage space. Scanning remote sensors onsatellites store data in raster format

• Raster data structures do not provide precise locationalinformation therefore it may seem to be ratherundesirable (DeMers, 1997).

Page 2: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

2

Representing Data using Raster Model

• area is covered by grid with (usually) equal-sized cells

• location of each cell calculated from origin of grid:

• cells often called pixels and raster data as image data

• Pixel/cell refers to the smallest unit of informationavailable in an image or raster map. This is the smallestelement of a display device that can be independentlyassigned attributes such as colour.

corn

wheat

fruit

clover

fruitoats

0 1 2 3 4 5 6 7 8 9

01

234

5

6

789

1 1 1 1 1 4 4 5 5 5

1 1 1 1 1 4 4 5 5 5

1 1 1 1 1 4 4 5 5 51 1 1 1 1 4 4 5 5 5

1 1 1 1 1 4 4 5 5 52 2 2 2 2 2 2 3 3 3

2 2 2 2 2 2 2 3 3 3

2 2 2 2 2 2 2 3 3 32 2 4 4 2 2 2 3 3 3

2 2 4 4 2 2 2 3 3 3

A grid defines geographic space as a matrix of identically-sized square cells. Each cell holds a

numeric value that measures a geographic attribute (like elevation) for that unit of space.

Page 3: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

3

•single values associated with each celltypically 8 bits assigned to values therefore 256 possible values (0-255)

•rules needed to assign value to cell if object does not cover entire cell• majority of the area (for continuous coverage

feature)• ‘touches’ cell (for linear feature such as road).

•easy to do overlays/analyses, just by ‘combining’ corresponding cell values

•simple data structure•directly store each layer as a single table (basically, each is analogous to a “spreadsheet”)

• Like the vector data model, the raster data model can represent discrete point, line and area features.

•A point feature is represented as a value in a single cell, alinear feature as a series of connected cells that portraylength, and an area feature as a group of connected cellsportraying shape.

Page 4: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

4

• Because the raster data model is a regular grid, spatialrelationships are implicit. Therefore, explicitly storingspatial relationships is not required as it is for thevector data model.

Types of Raster Data

1. Satellite Imagery

2. Digital Elevation Models (DEMs)

3. Digital Orthophotos (DOQ)

4. Scanned Files

5. Digital Raster Graphics (DRGs)

6. Graphic Files

7. GIS Software-Specific Raster Data

Page 5: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

5

Part of Andaman – Satellite Image

scanned file showing soil lines.

Digital Elevation Model

USGS DRG for Sun Valley, Idaho

Page 6: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

6

Raster Overlay

Cell by cell evaluation of mathematical functions

Local operations

•Based on cell by cell analysis•Two main types of localoperation:•(i) reclassification and (ii) overlay

•local operations

•local neighbourhood operation

•extended neighbourhood operations

•buffer zones

•viewsheds.

Raster data operations

Page 7: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

7

Local functions

• Local functions operate on the values of all the attributes relating to each cell (location).

• The operations are independent of the effects of attribute values from neighbouring cells.

• A local function results in a new grid as a function of one or more input grids.

The generic form of local functionsU = f (X1, X2, …)For example:• new_map = old_map_1 + old_map_2

Uses of local functions

•Local functions for raster GIS seem simple, but arethe basis of much raster analysis.

•Potential operators fall into six categories:(i) trigonometric;(ii) exponential and logarithmic (ex. exp (x));(iii) reclassification;(iv) selection (based on a condition);(v) statistical (ex. mean, median, mode);(vi) arithmetic (ex. absolute value of x)

Page 8: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

8

•Map algebra orperforming operations onlayers lets us use thiswide variety ofmathematical andclassification tools in alocal context.

•Reclassification is themost widely used localoperator

How map algebra lets you use local functions

Statistical local functions are useful for comparing twoor more input grids. You can return minimum, maximum,mean, median etc. values for each grid cell.

•This allows you to compare layers to other constants oran indicator value.

Page 9: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

9

Page 10: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

10

Page 11: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

11

Local neighbourhood functions

•These are also called focal functions.•Local neighbourhood functions examine the target cell and immediate neighbours.• A value is returned based on their combined evaluation.• Neighbourhoods can be defined by rectangles, circles, wedges, doughnut shapes (annulus) etc.

Focal functions

• The focal functions relate a cell to its neighbours.

• These are functions that explicitly make use of some kind of spatial associations in order to determine the value for the locations on the new output grid.

Every focal function requires at least threebasic parameters:

– Target location(s) (neighbourhood focus)– A specification of the neighbourhood around each target– A function to be performed on the elements within the neighbourhood

Page 12: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

12

Local neighbourhood operations can be based on operators such as Min,Max, Mean, Average etc

Page 13: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

13

Page 14: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

14

Neighbourhood operations(Zonal opertions)

•Just like local neighbourhood operators, neighbourhoodoperations (or zonal operations) use surrounding cells toreassign values. Often they deal with regions or zones.

•These are defined in the raster GIS context as groupsof cells that share the same values

•All the same operators/operations apply; they just takeinto account a wider range of cells

Zonal Functions

• Zonal functions operate on properties of the region (or zone) towhich a given cell belongs.

• These properties might be:– length, area or shape– number of locations having a certain attribute value on one gridthat occurs within the area defined by a region on another grid.

Characteristics of Zonal functions

• Do not change boundaries of regions• Change attribute values for each region (or zone) according toits statistics or user’s specification• Useful for understanding spatial distribution of objects,quantitative measurement of shapes, statistical properties ofobjects and spatial associations

Page 15: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

15

Page 16: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

16

Page 17: Raster Data Analysiswesternghats-apn.osgeo.in/wp-content/uploads/2015/... · Types of Raster Data 1.Satellite Imagery 2.Digital Elevation Models (DEMs) 3.Digital Orthophotos (DOQ)

17