SlideShare une entreprise Scribd logo
1  sur  19
Raster processing
Dr. Hans van der Kwast
OpenCourseWare
ocw.unesco-ihe.org
Learning objectives
• After this course you will be able to
• Understand different raster data types
• Use map algebra for geoprocessing
2
Map algebra
• Algebra for manipulating geographic data, developed in the
1980s by Dr. Dana Tomlin
• Set of primitive operations in a GIS allowing for 2 or more
raster layers of similar dimensions to produce a new raster
layer using algebraic operations
• Typically executed through a Raster Calculator, Command
Line or script.
3
Syntax for operators
• Syntax when using mathematical operators (+,-,*,/, etc.):
• Result = expression1 operator expression2
−operator: name of the operator
−expression1, expression2 are the arguments (i.e. inputs), these
can be:
−Maps
−Expressions resulting in a map (i.e. nesting of expressions is
possible)
−Result is the return value (i.e. what is created):
−One map
4
Syntax for operators
• Example 1: multiply two maps (for each cell), arguments are
maps:
• MapA = MapB * MapC
• Example 2: multiply two maps (for each cell), second
argument is another expression:
• MapA = MapB * (MapC + MapD)
5
Syntax for functions
• Syntax when using GIS functions:
• Result = function(expression1, expression2, …, expressionn)
−function: name of the function
−expression1, expression2, …, expressionn are the arguments
(i.e. inputs), these can be:
−Maps
−Expressions resulting in a map
−Result is the return value (i.e. what is created):
−One map (sometimes more)
6
Syntax for functions
• Example 1: calculate the slope of a Digital Elevation Model
(DEM):
• SlopeMap = slope(DEM)
7
Types of operations
• Local or point operations
• Focal or neighbourhood
operations
• Zonal or area operations
• Global or map operations
8
Local operations
• Independent of the property
of neighbouring cells (i.e. no
relations in lateral direction)
• A new map is generated on a
cell-by-cell basis
9
Local operations
• Examples:
10
Newmap = MapA + MapB
DepthToGroundwater = Elevation – GWLevel
PrecTot = 12 * (Precip_jan + Precip_jul) / 2
Focal operations
• Relates cells to its neighbours
• Different types:
1. Window operations
2. Flow direction operations
3. Friction path operations
4. Transport of material over flow
direction map
5. Visibility analysis
11
Focal operations
• Examples:
12
AverageElevation = windowaverage(Elevation,3000)
Diversity = windowdiversity(Habitats,5000)
Slopemap = slope(DEM)
RunoffMap = accuflux(LddMap,1000 * RainMm)
Zonal operations
• cell value is determined on
basis of values of cells which
are in the same area as the
cell under consideration.
• aggregation of cell values over
units of cartographic space
(areas)
13
Zonal operations
• Examples:
14
ClassAverage = areaaverage(temperature,landuse)
AverageKsat = areaaverage(ksat,soilmap)
Global operations
• computes one non-spatial
value as a function of existing
cell values of cells associated
with a map
• value is determined on basis
of all cells in a map
15
Global operations
• Examples:
16
totalPopulation = maptotal(populationmap)
averagePrecipitation = mapaverage(precipitation)
Boolean operations
• Boolean maps contain 1
(TRUE) and 0 (FALSE):
• Yes/No
• Suitable/Unsuitable
• Visible/Not visible
• Boolean operators result in a
boolean map:
• AND
• NOT
• OR
• XOR
17
and expression1 Result
expression2 True True True
expression2 True False False
expression2 False True False
expression2 False False False
or expression1 Result
expression2 True True True
expression2 True False True
expression2 False True True
expression2 False False False
xor expression1 Result
expression2 True True False
expression2 True False True
expression2 False True True
expression2 False False False
Raster calculations and NODATA
• For some functions boolean with TRUE and FALSE has a
different meaning than a map with TRUE and NODATA
• Example: distance calculations calculate the distance from
NODATA cells to the cells with a value. So if there are zeros,
the resulting map contains only NODATA
• Every map algebra operation with NODATA in one input map
results in NODATA in the output map.
18
Acknowledgments
• The map algebra illustrations were taken from the PCRaster
documentation: http://pcraster.geo.uu.nl with permission
from the Department of Physical Geography, Faculty of
Geosciences, Utrecht University, the Netherlands
19

Contenu connexe

Tendances

Introduction To Geographical Information System (GIS)
Introduction To Geographical Information System (GIS) Introduction To Geographical Information System (GIS)
Introduction To Geographical Information System (GIS) Ajay Singh Lodhi
 
Vector data model
Vector data model Vector data model
Vector data model Pramoda Raj
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GISJoey Li
 
Raster data model
Raster data modelRaster data model
Raster data modelPramoda Raj
 
Getting started with GIS
Getting started with GISGetting started with GIS
Getting started with GISEsri India
 
SPATIAL DATABASES.pptx
SPATIAL DATABASES.pptxSPATIAL DATABASES.pptx
SPATIAL DATABASES.pptxAmanSingla57
 
Spatial Analysis Using GIS
Spatial Analysis Using GISSpatial Analysis Using GIS
Spatial Analysis Using GISPrachi Mehta
 
5 spatial data editing
5 spatial data editing5 spatial data editing
5 spatial data editinganita bodke
 
Surface Analysis in GIS
Surface Analysis in GISSurface Analysis in GIS
Surface Analysis in GISRituSaha3
 
GIS and QGIS training notes
GIS and QGIS training notesGIS and QGIS training notes
GIS and QGIS training notesArnold Kilaini
 
Data Models - GIS I
Data Models - GIS IData Models - GIS I
Data Models - GIS IJohn Reiser
 
Difference between gis and cad
Difference between gis and cadDifference between gis and cad
Difference between gis and cadSumant Diwakar
 
Data input and transformation
Data input and transformationData input and transformation
Data input and transformationMohsin Siddique
 
Spatial analysis and modeling
Spatial analysis and modelingSpatial analysis and modeling
Spatial analysis and modelingTolasa_F
 

Tendances (20)

Introduction To Geographical Information System (GIS)
Introduction To Geographical Information System (GIS) Introduction To Geographical Information System (GIS)
Introduction To Geographical Information System (GIS)
 
Georeferencing
GeoreferencingGeoreferencing
Georeferencing
 
Geoprocessing
GeoprocessingGeoprocessing
Geoprocessing
 
Vector data model
Vector data model Vector data model
Vector data model
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
Raster data model
Raster data modelRaster data model
Raster data model
 
GIS data analysis
GIS data analysisGIS data analysis
GIS data analysis
 
Topology in GIS
Topology in GISTopology in GIS
Topology in GIS
 
Getting started with GIS
Getting started with GISGetting started with GIS
Getting started with GIS
 
SPATIAL DATABASES.pptx
SPATIAL DATABASES.pptxSPATIAL DATABASES.pptx
SPATIAL DATABASES.pptx
 
Spatial Analysis Using GIS
Spatial Analysis Using GISSpatial Analysis Using GIS
Spatial Analysis Using GIS
 
GIS
GISGIS
GIS
 
5 spatial data editing
5 spatial data editing5 spatial data editing
5 spatial data editing
 
Surface Analysis in GIS
Surface Analysis in GISSurface Analysis in GIS
Surface Analysis in GIS
 
GIS and QGIS training notes
GIS and QGIS training notesGIS and QGIS training notes
GIS and QGIS training notes
 
Data Models - GIS I
Data Models - GIS IData Models - GIS I
Data Models - GIS I
 
Difference between gis and cad
Difference between gis and cadDifference between gis and cad
Difference between gis and cad
 
Data input and transformation
Data input and transformationData input and transformation
Data input and transformation
 
Model builder in_arcgis
Model builder in_arcgisModel builder in_arcgis
Model builder in_arcgis
 
Spatial analysis and modeling
Spatial analysis and modelingSpatial analysis and modeling
Spatial analysis and modeling
 

Similaire à Raster processing

Dem analaysis and catchment delineation using GIS
Dem analaysis and catchment delineation using GISDem analaysis and catchment delineation using GIS
Dem analaysis and catchment delineation using GISHans van der Kwast
 
Opensource gis development - part 4
Opensource gis development - part 4Opensource gis development - part 4
Opensource gis development - part 4Andrea Antonello
 
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory AccessAccelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory AccessIgor Sfiligoi
 
Tutorial calculation in “An Introduction to Computational Fluid Dynamics”
Tutorial calculation in “An Introduction to Computational Fluid Dynamics”Tutorial calculation in “An Introduction to Computational Fluid Dynamics”
Tutorial calculation in “An Introduction to Computational Fluid Dynamics”OpenCAE_kanto_fluid
 
On Extending MapReduce - Survey and Experiments
On Extending MapReduce - Survey and ExperimentsOn Extending MapReduce - Survey and Experiments
On Extending MapReduce - Survey and ExperimentsYu Liu
 
Introduction to Apache Spark
Introduction to Apache SparkIntroduction to Apache Spark
Introduction to Apache SparkDatio Big Data
 
Clustering of graphs and search of assemblages
Clustering of graphs and search of assemblagesClustering of graphs and search of assemblages
Clustering of graphs and search of assemblagesData-Centric_Alliance
 
ch 11-part 1.pdf
ch 11-part 1.pdfch 11-part 1.pdf
ch 11-part 1.pdfMisterAK
 
Distributed Computing with Apache Hadoop. Introduction to MapReduce.
Distributed Computing with Apache Hadoop. Introduction to MapReduce.Distributed Computing with Apache Hadoop. Introduction to MapReduce.
Distributed Computing with Apache Hadoop. Introduction to MapReduce.Konstantin V. Shvachko
 
Convolutional Neural Networks
Convolutional Neural NetworksConvolutional Neural Networks
Convolutional Neural Networksmilad abbasi
 
Enterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkEnterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkAlpine Data
 
Enterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkEnterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkSpark Summit
 
Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ahmed Ammar Rebai PhD
 
Introduction to data structures and complexity.pptx
Introduction to data structures and complexity.pptxIntroduction to data structures and complexity.pptx
Introduction to data structures and complexity.pptxPJS KUMAR
 

Similaire à Raster processing (20)

Dem analaysis and catchment delineation using GIS
Dem analaysis and catchment delineation using GISDem analaysis and catchment delineation using GIS
Dem analaysis and catchment delineation using GIS
 
Opensource gis development - part 4
Opensource gis development - part 4Opensource gis development - part 4
Opensource gis development - part 4
 
Gdistance vignette
Gdistance vignetteGdistance vignette
Gdistance vignette
 
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory AccessAccelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
 
Tutorial calculation in “An Introduction to Computational Fluid Dynamics”
Tutorial calculation in “An Introduction to Computational Fluid Dynamics”Tutorial calculation in “An Introduction to Computational Fluid Dynamics”
Tutorial calculation in “An Introduction to Computational Fluid Dynamics”
 
On Extending MapReduce - Survey and Experiments
On Extending MapReduce - Survey and ExperimentsOn Extending MapReduce - Survey and Experiments
On Extending MapReduce - Survey and Experiments
 
CNN.pptx
CNN.pptxCNN.pptx
CNN.pptx
 
Introduction to Apache Spark
Introduction to Apache SparkIntroduction to Apache Spark
Introduction to Apache Spark
 
Clustering of graphs and search of assemblages
Clustering of graphs and search of assemblagesClustering of graphs and search of assemblages
Clustering of graphs and search of assemblages
 
ch 11-part 1.pdf
ch 11-part 1.pdfch 11-part 1.pdf
ch 11-part 1.pdf
 
Distributed Computing with Apache Hadoop. Introduction to MapReduce.
Distributed Computing with Apache Hadoop. Introduction to MapReduce.Distributed Computing with Apache Hadoop. Introduction to MapReduce.
Distributed Computing with Apache Hadoop. Introduction to MapReduce.
 
Space time & power.
Space time & power.Space time & power.
Space time & power.
 
Cnn
CnnCnn
Cnn
 
Convolutional Neural Networks
Convolutional Neural NetworksConvolutional Neural Networks
Convolutional Neural Networks
 
Enterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkEnterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using Spark
 
Enterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkEnterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using Spark
 
Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...
 
Hadoop
HadoopHadoop
Hadoop
 
Introduction to data structures and complexity.pptx
Introduction to data structures and complexity.pptxIntroduction to data structures and complexity.pptx
Introduction to data structures and complexity.pptx
 
mapreduce ppt.ppt
mapreduce ppt.pptmapreduce ppt.ppt
mapreduce ppt.ppt
 

Plus de Hans van der Kwast

Plus de Hans van der Kwast (7)

GIS file types
GIS file typesGIS file types
GIS file types
 
Projections
ProjectionsProjections
Projections
 
Map design in GIS
Map design in GISMap design in GIS
Map design in GIS
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
GIS fundamentals - vector
GIS fundamentals - vectorGIS fundamentals - vector
GIS fundamentals - vector
 
GIS fundamentals - raster
GIS fundamentals - rasterGIS fundamentals - raster
GIS fundamentals - raster
 
Uncertainty Analysis and Data Assimilation of Remote Sensing Data for the Cal...
Uncertainty Analysis and Data Assimilation of Remote Sensing Data for the Cal...Uncertainty Analysis and Data Assimilation of Remote Sensing Data for the Cal...
Uncertainty Analysis and Data Assimilation of Remote Sensing Data for the Cal...
 

Dernier

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Dernier (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Raster processing

  • 1. Raster processing Dr. Hans van der Kwast OpenCourseWare ocw.unesco-ihe.org
  • 2. Learning objectives • After this course you will be able to • Understand different raster data types • Use map algebra for geoprocessing 2
  • 3. Map algebra • Algebra for manipulating geographic data, developed in the 1980s by Dr. Dana Tomlin • Set of primitive operations in a GIS allowing for 2 or more raster layers of similar dimensions to produce a new raster layer using algebraic operations • Typically executed through a Raster Calculator, Command Line or script. 3
  • 4. Syntax for operators • Syntax when using mathematical operators (+,-,*,/, etc.): • Result = expression1 operator expression2 −operator: name of the operator −expression1, expression2 are the arguments (i.e. inputs), these can be: −Maps −Expressions resulting in a map (i.e. nesting of expressions is possible) −Result is the return value (i.e. what is created): −One map 4
  • 5. Syntax for operators • Example 1: multiply two maps (for each cell), arguments are maps: • MapA = MapB * MapC • Example 2: multiply two maps (for each cell), second argument is another expression: • MapA = MapB * (MapC + MapD) 5
  • 6. Syntax for functions • Syntax when using GIS functions: • Result = function(expression1, expression2, …, expressionn) −function: name of the function −expression1, expression2, …, expressionn are the arguments (i.e. inputs), these can be: −Maps −Expressions resulting in a map −Result is the return value (i.e. what is created): −One map (sometimes more) 6
  • 7. Syntax for functions • Example 1: calculate the slope of a Digital Elevation Model (DEM): • SlopeMap = slope(DEM) 7
  • 8. Types of operations • Local or point operations • Focal or neighbourhood operations • Zonal or area operations • Global or map operations 8
  • 9. Local operations • Independent of the property of neighbouring cells (i.e. no relations in lateral direction) • A new map is generated on a cell-by-cell basis 9
  • 10. Local operations • Examples: 10 Newmap = MapA + MapB DepthToGroundwater = Elevation – GWLevel PrecTot = 12 * (Precip_jan + Precip_jul) / 2
  • 11. Focal operations • Relates cells to its neighbours • Different types: 1. Window operations 2. Flow direction operations 3. Friction path operations 4. Transport of material over flow direction map 5. Visibility analysis 11
  • 12. Focal operations • Examples: 12 AverageElevation = windowaverage(Elevation,3000) Diversity = windowdiversity(Habitats,5000) Slopemap = slope(DEM) RunoffMap = accuflux(LddMap,1000 * RainMm)
  • 13. Zonal operations • cell value is determined on basis of values of cells which are in the same area as the cell under consideration. • aggregation of cell values over units of cartographic space (areas) 13
  • 14. Zonal operations • Examples: 14 ClassAverage = areaaverage(temperature,landuse) AverageKsat = areaaverage(ksat,soilmap)
  • 15. Global operations • computes one non-spatial value as a function of existing cell values of cells associated with a map • value is determined on basis of all cells in a map 15
  • 16. Global operations • Examples: 16 totalPopulation = maptotal(populationmap) averagePrecipitation = mapaverage(precipitation)
  • 17. Boolean operations • Boolean maps contain 1 (TRUE) and 0 (FALSE): • Yes/No • Suitable/Unsuitable • Visible/Not visible • Boolean operators result in a boolean map: • AND • NOT • OR • XOR 17 and expression1 Result expression2 True True True expression2 True False False expression2 False True False expression2 False False False or expression1 Result expression2 True True True expression2 True False True expression2 False True True expression2 False False False xor expression1 Result expression2 True True False expression2 True False True expression2 False True True expression2 False False False
  • 18. Raster calculations and NODATA • For some functions boolean with TRUE and FALSE has a different meaning than a map with TRUE and NODATA • Example: distance calculations calculate the distance from NODATA cells to the cells with a value. So if there are zeros, the resulting map contains only NODATA • Every map algebra operation with NODATA in one input map results in NODATA in the output map. 18
  • 19. Acknowledgments • The map algebra illustrations were taken from the PCRaster documentation: http://pcraster.geo.uu.nl with permission from the Department of Physical Geography, Faculty of Geosciences, Utrecht University, the Netherlands 19