SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Change detection techniques
Change detection techniquesChange detection techniques
Change detection techniques
Femi Opaleye
 

La actualidad más candente (20)

Spatial interpolation techniques
Spatial interpolation techniquesSpatial interpolation techniques
Spatial interpolation techniques
 
Vector and Raster Data data model
Vector and Raster Data data modelVector and Raster Data data model
Vector and Raster Data data model
 
Spatial Data Model
Spatial Data ModelSpatial Data Model
Spatial Data Model
 
Change detection techniques
Change detection techniquesChange detection techniques
Change detection techniques
 
Types of GIS Data
Types of GIS DataTypes of GIS Data
Types of GIS Data
 
Raster data and Vector data
Raster data and Vector dataRaster data and Vector data
Raster data and Vector data
 
Understanding Coordinate Systems and Projections for ArcGIS
Understanding Coordinate Systems and Projections for ArcGISUnderstanding Coordinate Systems and Projections for ArcGIS
Understanding Coordinate Systems and Projections for ArcGIS
 
Geodetic systems (earth, ellipsoid)
Geodetic systems (earth, ellipsoid)Geodetic systems (earth, ellipsoid)
Geodetic systems (earth, ellipsoid)
 
Components of Spatial Data Quality in GIS
Components of Spatial Data Quality in GISComponents of Spatial Data Quality in GIS
Components of Spatial Data Quality in GIS
 
GIS
GISGIS
GIS
 
Scanners, image resolution, orbit in remote sensing, pk mani
Scanners, image resolution, orbit in remote sensing, pk maniScanners, image resolution, orbit in remote sensing, pk mani
Scanners, image resolution, orbit in remote sensing, pk mani
 
Geographic information system
Geographic information systemGeographic information system
Geographic information system
 
TYBSC IT PGIS Unit III Chapter I Spatial Referencing and Positioning
TYBSC IT PGIS Unit III Chapter I Spatial Referencing and PositioningTYBSC IT PGIS Unit III Chapter I Spatial Referencing and Positioning
TYBSC IT PGIS Unit III Chapter I Spatial Referencing and Positioning
 
Historical Development of Photogrammetry
Historical Development of PhotogrammetryHistorical Development of Photogrammetry
Historical Development of Photogrammetry
 
GIS Data Types
GIS Data TypesGIS Data Types
GIS Data Types
 
Photogrammetry - areaotriangulation
Photogrammetry - areaotriangulationPhotogrammetry - areaotriangulation
Photogrammetry - areaotriangulation
 
Gis Geographical Information System Fundamentals
Gis Geographical Information System FundamentalsGis Geographical Information System Fundamentals
Gis Geographical Information System Fundamentals
 
DATA in GIS and DATA Query
DATA in GIS and DATA QueryDATA in GIS and DATA Query
DATA in GIS and DATA Query
 
Map design in GIS
Map design in GISMap design in GIS
Map design in GIS
 
Coordinate systems
Coordinate systemsCoordinate systems
Coordinate systems
 

Similar a Raster processing

Convolutional Neural Networks
Convolutional Neural NetworksConvolutional Neural Networks
Convolutional Neural Networks
milad abbasi
 

Similar a 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...
 
GIS data structure
GIS data structureGIS data structure
GIS data structure
 
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
 

Más de Hans van der Kwast (6)

GIS file types
GIS file typesGIS file types
GIS file types
 
Projections
ProjectionsProjections
Projections
 
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...
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.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