{"id":257,"date":"2019-03-09T04:29:10","date_gmt":"2019-03-09T04:29:10","guid":{"rendered":"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=257"},"modified":"2019-03-09T04:43:13","modified_gmt":"2019-03-09T04:43:13","slug":"map-algebra","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/chapter\/map-algebra\/","title":{"rendered":"Map Algebra"},"content":{"raw":"<div>\r\n\r\n&nbsp;\r\n\r\n<strong>CONTENTS<\/strong>\r\n\r\n&nbsp;\r\n\r\n1.\u00a0 Learning Objectives\r\n\r\n&nbsp;\r\n\r\n2.\u00a0 Introduction\r\n\r\n&nbsp;\r\n\r\n3.\u00a0 Significance of Map Algebra\r\n\r\n&nbsp;\r\n\r\n4.\u00a0 Working with map algebra\r\n\r\n&nbsp;\r\n\r\n5.\u00a0 Summary\r\n\r\n&nbsp;\r\n\r\n6.\u00a0 References\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong style=\"text-align: initial;font-size: 1em\">1. Learning Objective<\/strong>\r\n<div>\r\n\r\n&nbsp;\r\n\r\nTo understand the concept of map algebra in GIS and its application in decision making process\r\n\r\n&nbsp;\r\n\r\n2.\u00a0 <strong>Introduction<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Spatial feature of earth surface can be easily mimicked in significant way virtually by means of Geospatial technology or GIS technology. Any particular detailed representation of a earth\u2019s surface feature or phenomenon can be termed as spatial data which can be represented many ways such as vector or raster data models. Spatial data being explicit in nature makes its central role in GIS techniques by improving the capacity of editing, analysis and modeling of GIS technique. The analytical and modeling potential of GIS helps in solving complex planning and management problems.<\/p>\r\n<img class=\"aligncenter size-full wp-image-260\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134.png\" alt=\"\" width=\"375\" height=\"289\" \/>\r\n<p style=\"text-align: center\">Figure1. An illustrative diagram of spatial system.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Representation of spatial data in either vector or raster format in GIS platform may have its own pros and cons but will serve specific purpose. The gridded and continuous structure of raster data provides an edge to apply a number of mathematical and other techniques on raw raster data generating a number of derived analytical variables\/parameters. These derived variables might have substantial information for the said region which can become a significant tool for decision support system. For\u00a0<span style=\"font-size: 1em;text-align: initial\">example, spatial data for vegetation or water body for two times of a region can provide nearly a very good assessment of deforestation or water shrinking or flooding situation.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-261\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135.png\" alt=\"\" width=\"631\" height=\"401\" \/>\r\n<p style=\"text-align: center\">Fig-2: Diagrammatic representation of mathematical operation on two sets of spatial data to derive new spatial information data set.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Derived spatial information using a set of spatial data can have significant potential application not only in spatial phenomenon but in non-spatial phenomenon also existing in the region. These capabilities of GIS technology had evolved exponentially through time in terms of technical and computational growth. A lot of tools and techniques had designed and tested for spatial analyst.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Map algebra is one of the spatial analyst technique used for manipulating, deriving and modeling purpose using a set of raster data. Or We can understand map algebra a powerful tool which can perform a set of mathematical operation on cell-by-cell of a set of raster data. After performing the mathematical operation, map algebra creates a new raster data based on math-like expressions.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-262\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136.png\" alt=\"\" width=\"558\" height=\"213\" \/>\r\n<p style=\"text-align: center\">Figure-3: Representation of working flow of a mathematical operation using Map algebra tool. Image<\/p>\r\n<p style=\"text-align: center\">source: www.esri.com<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">It is also known as cartographic modeling. By use of tools, operators and functions map algebra become simple and powerful algebra and applied on raster data to achieve many informative results.<\/p>\r\n&nbsp;\r\n\r\n<strong>3. Significance of Map Algebra<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">A variety of spatial information of earth and its atmosphere can be imported on GIS platform in a number of ways. This information can be further processed using map algebra on GIS platform to derived parameters or variables about earth and its other components which can become a early warning system, hazard zone and decision support system for planners in field of agriculture, population, urban planners. Looking into the power of map algebra through mathematical function, creative domain of GIS field might emerge as integral part of processing and modeling of huge data set pertaining to earth and its different components.<\/p>\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n<strong>4<\/strong>.<strong> Working with Map algebra<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">It is a script language designed for manipulation of input data in form of spatial analyst in various GIS packages. In many packages like ARCGIS, it named as raster calculator. Map algebra uses simple syntax like algebra taking input\/inputs and resulting into modified output. Inputs can be single raster data set, raster layer, feature data set or shapefile. Map algebra acts as a strong tool in manipulation\u00a0<span style=\"font-size: 1em;text-align: initial\">spatial data. Manipulation can be done by applying mathematical function on of each location's values and can be applied to a series of inputs as well.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In order to understand map algebra properly, we need to understand its different components as explained below.<\/p>\r\n&nbsp;\r\n\r\nImportant component of map algebra can be understood under following sub-topics\r\n<ul>\r\n \t<li>values<\/li>\r\n \t<li>operators<\/li>\r\n \t<li>function<\/li>\r\n<\/ul>\r\n<p style=\"text-align: justify\">Inputs are the very first things on which map algebra operates. Therefore inputs become values for map algebra for further processing.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Mathematical expressions like sum, subtraction or multiplication, transform the input into resulting output and therefore is termed as operator. Values and operators are also explained in figure-3 where cell values of two different (can be same also) rasters are summed up cell by cell resulting in new raster dataset. Here cell values are values and mathematical function, sum, is operator.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Map algebra operators include a range of mathematical function which is explained further. Typically the operators are categorized into following subcategories:<\/p>\r\n\r\n<ul>\r\n \t<li>Arithmetic Operators<\/li>\r\n \t<li>Comparison and logical operators<\/li>\r\n \t<li>Conditional Operators<\/li>\r\n<\/ul>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>4.1 Arithmetic Operators: <\/strong>Map algebra allows various arithmetic expressions like sum, multiplication, divide and subtraction. These mathematical expressions can have inputs of raster and constant values or raster and raster grids.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>4.2 Comparison and logical operators: <\/strong>Comparison and logical operators within map algebra includes<\/p>\r\n\r\n<\/div>\r\n<img class=\"aligncenter size-full wp-image-263\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-137.png\" alt=\"\" width=\"258\" height=\"142\" \/><img class=\"aligncenter size-full wp-image-264\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138.png\" alt=\"\" width=\"491\" height=\"153\" \/>\r\n<div>\r\n<p style=\"text-align: justify\">Comparison operator can be understood by taking an example. If the resultant raster grid values is calculated as<\/p>\r\n&nbsp;\r\n\r\n<strong><em>Resultant Raster: = Input Raster1 &lt; &gt; Input Ratser2<\/em><\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The resultant raster grid cell will store the values which will fulfill the above condition i.e. it will take only those input cell values of input rasters which are not same (True) and same grid values of input rasters will be considered as false condition. Like this the resultant raster will store the true and false assignment using the input rasters.<\/p>\r\n\r\n<\/div>\r\n<img class=\"aligncenter size-full wp-image-265\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139.png\" alt=\"\" width=\"379\" height=\"399\" \/>\r\n<div>\r\n<p style=\"text-align: center\">Fig-4: Logical Expressions in Map algebra. Green cell represents true values and white cell represents false values. Source: e-book, principles of GIS, An Introductary Textbook, ISSN 1567-5777<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Logical and comparison operation is diagrammatically explained in fig-4 where true and false values were calculated using comparison operator using inputs and logical operators make a decision based on provided conditions. The logical operators have been explained in little more detail (complex logical operator) the fig-5 where a condition is evaluated against a value i.e. forest cover (F) against elevation (value) or in other words logical outcomes for the criteria of forest search at different elevations.<\/p>\r\n<img class=\"aligncenter size-full wp-image-266\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140.png\" alt=\"\" width=\"566\" height=\"336\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: center\">Fig-5: Complex Logical Expressions in Map algebra. A represents classified raster for land use and B elevation values. Source: e-book, principles of GIS, An Introductary Textbook, ISSN 1567-5777<\/p>\r\n&nbsp;\r\n\r\n<strong>4.3 Conditional Operators<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Conditional expressions have proved to be very useful in multiple criteria decision. By providing certain criteria, surprising outcomes can be achieved. Logical and comparison operations provide true\u00a0<span style=\"font-size: 1em;text-align: initial\">or false values but testing these statements, conditional expressions is required. Typically the conditional expression is written as:<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><em style=\"text-align: initial;font-size: 1em\">Output_Raster:= CON (Condition, then_expression, else_expression)<\/em><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Here <em>condition<\/em> is the tested condition; <em>then_condition<\/em> is evaluated if condition hold, <em>else_condition<\/em> is evaluated if it does not hold.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The conditional expression CON (A= \u201cForest\u201d, 10, 0) tells that input forest pixels will be assigned a value of 10 in output raster. And a value of 0 will be assigned where the forest pixels do not exist (false Value). Another example can be taken where suitability analysis is done using landuse class and geology of the region.<\/p>\r\n&nbsp;\r\n\r\n<em>Suitability= CON ((Landuse= \u201cForest\u201d AND Geology= \u201cAlluvial\u201d) OR (Landuse= \u201cGrass\u201d AND Geology=\u201dShale\u201d), \u201cSuitable\u201d, \u201cUnsuitable\u201d))<\/em>\r\n\r\n<img class=\"aligncenter size-full wp-image-267\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141.png\" alt=\"\" width=\"616\" height=\"293\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: center\">Fig-6: Conditional Expressions in Map algebra. A represents classified raster for land use and B elevation values. Source: e-book, principles of GIS, An Introductary Textbook, ISSN 1567-5777<\/p>\r\n&nbsp;\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-268\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142.png\" alt=\"\" width=\"598\" height=\"302\" \/>\r\n<p style=\"text-align: center\">Fig-7: Conditional Expressions in Map algebra to find out suitability analysis. Source: e-book, principles of GIS, An Introductory Textbook, ISSN 1567-5777<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Functions are more defined but little complex in map algebra which needed to be explained in detail. Function(s) defines specificity and region of operators being applied on raster data or datasets. On the basis of requirement, functions can extract or generate at cell to cell level information or focal information like min, max or information regarding a particular zone. Therefore it can be said in general that nature of analysis controls the functions specificity.<\/p>\r\n&nbsp;\r\n\r\nSo in more precise the functions in map algebra can be categorized into:\r\n<ul>\r\n \t<li>Local functions<\/li>\r\n \t<li>Focal functions<\/li>\r\n \t<li>Zonal functions<\/li>\r\n \t<li>Global functions<\/li>\r\n<\/ul>\r\nMore importantly, these functions can be applied to one or multiple raster datasets.\r\n\r\n&nbsp;\r\n\r\n<strong>4.4 Local functions<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">When an operation is processed at each individual cell value of raster data set(s), the function is termed as local function. It considers top left cell as initial cell value input and proceeds. The output\u00a0<span style=\"font-size: 1em;text-align: initial\">raster cell value thus generated is a function of cell values at the same location which was in the input layers. For example: If the provided raster of pressure data is in Pascal, it can be converted into hPa by multiplying by a constant number i.e. dividing each cell value by 10 (Constant value multiplication) or averaging two raster datasets of temperature of two different times (Multiplier Grid multiplication).<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-269\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143.png\" alt=\"\" width=\"639\" height=\"345\" \/>\r\n<p style=\"text-align: center\">Fig-8: Map algebra local function using Grid and constant value multiplier<\/p>\r\n&nbsp;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">From the explained example, it is pretty clear that a number of mathematical operations can be applied on raster data set(s). Most of the functions are local in nature. The mathematical operations which are considered for local function are:<\/p>\r\n\r\n<ul>\r\n \t<li>Arithmetic operations (addition, subtraction, multiplication, division)<\/li>\r\n \t<li>Statistical operations (minimum, maximum, average, median)<\/li>\r\n \t<li>Relational operations (greater than, smaller than, equal to)<\/li>\r\n \t<li>Trigonometric operations (sine, cosine, tangent, arcsine)<\/li>\r\n \t<li>Exponential and logarithmic operations (exponent, logarithm)<\/li>\r\n<\/ul>\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>4.5 Focal Functions<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">If kernel (matrix) moves over the entire data and recalculates the each grid value by considering the neighboring cell value of input raster, the function(s) is termed as focal function. Such functions are used to enhance a particular kind of information of a dataset such as boundary information among different earth features (water-land, forest-settlement boundaries) or other kind of analysis.<\/p>\r\n<img class=\"aligncenter size-full wp-image-270\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144.png\" alt=\"\" width=\"668\" height=\"398\" \/>\r\n<p style=\"text-align: center\">Fig-9: Map algebra focal function using 3\u00d73 Karnel to recalculate the output grid cell value<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Focal function can be understood by examples given in fig-9. The central cell of 3\u00d73 kernel or matrix starts rolling over top left cell of the raster data and recalculates the resultant cell values. So the top left cell has been assigned as grid-cell no-1 and horizontally next to it as grid cell no-2 and so on. The process of recalculating the resultant value using sum karnel is explained below.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">Raster data grid-cell-1 has value of 25 along with cell values of 26, 27 and 28 as neighboring grid-cell. The center grid-cell of karnel would be at the place of raster grid-cell no-1. So the recalculated grid cell-value for resultant grid-cell no-1 would be<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong><em>(Target Raster Grid-cell-value \u00d7 Karnel Central-cell-value)+ (Neighboring-cell-value) \u00d7 (Respective karnel-cell-value)<\/em><\/strong>\r\n\r\n&nbsp;\r\n\r\nLike this the recalculated grid cell-value for resultant grid-cell No-1 is\r\n\r\n&nbsp;\r\n\r\n(0\u00d725)+ (1\u00d726) + (1\u00d727) + (1\u00d728) = 0+26+27+28=<strong>71<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">There is only three-neighboring grid-cell for top-left grid-cell as it is at corner-cell. Likewise, the recalculated grid cell-value for resultant grid-cell No-2 is<\/p>\r\n&nbsp;\r\n\r\n(0\u00d726)+(1\u00d728)+(1\u00d726)+(1\u00d727)+(1\u00d728)+(1\u00d725)=0+28+26+27+28+25=<strong>154<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">As the grid-cell lies far from corner, the number of neighboring grid-cell increases up to a maximum of eight (8). Similarly, the recalculated grid cell-value for resultant grid-cell No-12 is<\/p>\r\n&nbsp;\r\n\r\n(0\u00d727)+(1\u00d728)+(1\u00d726)+(1\u00d727)+(1\u00d729)+(1\u00d726)+(1\u00d728)+(1\u00d725)+(1\u00d726)=0+28+26+27+29+26+28+25+26=<strong>215<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">There is different kind of karnel working as mean karnel, average karnel, directional karnel and inward outward karnel.<\/p>\r\n&nbsp;\r\n\r\n<strong>4.6 Zonal functions<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">A thematic class like Building, watershed, forest etc is considered as a zone where each cells hold same values irrespective of float or integer in nature. Zonal functions are extension of focal functions where neighborhood is defined by zones not by a specified neighborhood shape. If particular kind of information enhancement technique is applied over zone using the karnel or other spatial filters, it is termed as zonal function. It is a spatial function which is used to calculate the output cell values using the zone containing that cell. It can be better understood by taking the example of a zone of a watershed. Zonal function can be used to calculate the total mean volume of precipitation in each watershed zone. Zonal mean, zonal max, zonal sum, and zonal variety are general types of zonal function.<\/p>\r\n<img class=\"aligncenter size-full wp-image-271\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145.png\" alt=\"\" width=\"626\" height=\"189\" \/>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n<p style=\"text-align: center\">Fig-10: Map algebra zonal function using\u00a0 (a) zone dataset and (b) value raster to calculate the zonal mean output raster. Source: ArcGIS Help mannual<\/p>\r\n&nbsp;\r\n\r\n<strong>4.7 Global function<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">If the each output raster cell-value is a potentially function of cells combined from input rasters. To process such kind of operations, global function is required. <em>Euclidean<\/em> and <em>cost (or weighted distance)<\/em> functions are two groups of global functions. Euclidean distance is estimated from the center of the source cells to the center of each of the surrounding cells. In other words we can say that the output value of each cell is a function of the entire input raster grid. Generally the global functions are applied in distance measurement, flow directions and weighting measures.<\/p>\r\n\r\n<\/div>\r\n<img class=\"aligncenter size-full wp-image-272\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146.png\" alt=\"\" width=\"516\" height=\"266\" \/>\r\n<p style=\"text-align: center\">Fig-11: Map algebra Global function: Calculating the Euclidean distance from a raster cell to its nearest source cell. Source: ArcGIS Help manual<\/p>\r\n&nbsp;\r\n\r\n<strong>5. Summary<\/strong>\r\n<p style=\"text-align: justify\">Geospatial technique has evolved as an integrated science tool which is being used in various fields now a day. The most exciting technique within GIS which offers a range of analytical capability is map algebra. This script based technique is applied using operators and functions resulting in more precise and useful outcomes. Operators and functions together make this technique very unique as it can handle many input criteria. While arithmetic operators provide basic mathematical capability, comparison and logical operators gives more wings to generate qualitative outputs. Adding more capability, conditional operators take many criteria or considers decision table (quantitative and qualitative) for multi-criteria analysis. On the other hand functions allow the operators to work at local, focal, zonal or global level. Map algebra has advanced more in recent years adding more functionalities depending on requirement as the domain of GIS widens. Be it forestry, urban planning, agriculture or atmospheric science, map algebra provides a scientific solution based on available inputs which serves as decision making support system.<\/p>\r\n&nbsp;\r\n<ol start=\"6\">\r\n \t<li><strong> References<\/strong><\/li>\r\n<\/ol>\r\n<ul>\r\n \t<li>desktop.arcgis.com\/en\/arcmap\/latest\/...\/spatial...\/map-algebra\/what-is-map-algebra.htm<\/li>\r\n \t<li>e-book, Principles of GIS, An Introductory Textbook, ISSN 1567-5777<\/li>\r\n \t<li>gisgeography.com \u203a GIS Analysis<\/li>\r\n \t<li>https:\/\/www.nrem.iastate.edu\/files\/w11-MapAlgebra_presentation5.pdf<\/li>\r\n \t<li>https:\/\/support.esri.com\/en\/other-resources\/gis-dictionary\/term\/map%20algebra<\/li>\r\n<\/ul>","rendered":"<div>\n<p>&nbsp;<\/p>\n<p><strong>CONTENTS<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>1.\u00a0 Learning Objectives<\/p>\n<p>&nbsp;<\/p>\n<p>2.\u00a0 Introduction<\/p>\n<p>&nbsp;<\/p>\n<p>3.\u00a0 Significance of Map Algebra<\/p>\n<p>&nbsp;<\/p>\n<p>4.\u00a0 Working with map algebra<\/p>\n<p>&nbsp;<\/p>\n<p>5.\u00a0 Summary<\/p>\n<p>&nbsp;<\/p>\n<p>6.\u00a0 References<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong style=\"text-align: initial;font-size: 1em\">1. Learning Objective<\/strong><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p>To understand the concept of map algebra in GIS and its application in decision making process<\/p>\n<p>&nbsp;<\/p>\n<p>2.\u00a0 <strong>Introduction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Spatial feature of earth surface can be easily mimicked in significant way virtually by means of Geospatial technology or GIS technology. Any particular detailed representation of a earth\u2019s surface feature or phenomenon can be termed as spatial data which can be represented many ways such as vector or raster data models. Spatial data being explicit in nature makes its central role in GIS techniques by improving the capacity of editing, analysis and modeling of GIS technique. The analytical and modeling potential of GIS helps in solving complex planning and management problems.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-260\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134.png\" alt=\"\" width=\"375\" height=\"289\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134.png 375w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134-300x231.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134-65x50.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134-225x173.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-134-350x270.png 350w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/p>\n<p style=\"text-align: center\">Figure1. An illustrative diagram of spatial system.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Representation of spatial data in either vector or raster format in GIS platform may have its own pros and cons but will serve specific purpose. The gridded and continuous structure of raster data provides an edge to apply a number of mathematical and other techniques on raw raster data generating a number of derived analytical variables\/parameters. These derived variables might have substantial information for the said region which can become a significant tool for decision support system. For\u00a0<span style=\"font-size: 1em;text-align: initial\">example, spatial data for vegetation or water body for two times of a region can provide nearly a very good assessment of deforestation or water shrinking or flooding situation.<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-261\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135.png\" alt=\"\" width=\"631\" height=\"401\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135.png 631w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135-300x191.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135-65x41.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135-225x143.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-135-350x222.png 350w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p style=\"text-align: center\">Fig-2: Diagrammatic representation of mathematical operation on two sets of spatial data to derive new spatial information data set.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Derived spatial information using a set of spatial data can have significant potential application not only in spatial phenomenon but in non-spatial phenomenon also existing in the region. These capabilities of GIS technology had evolved exponentially through time in terms of technical and computational growth. A lot of tools and techniques had designed and tested for spatial analyst.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Map algebra is one of the spatial analyst technique used for manipulating, deriving and modeling purpose using a set of raster data. Or We can understand map algebra a powerful tool which can perform a set of mathematical operation on cell-by-cell of a set of raster data. After performing the mathematical operation, map algebra creates a new raster data based on math-like expressions.<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-262\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136.png\" alt=\"\" width=\"558\" height=\"213\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136.png 558w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136-300x115.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136-65x25.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136-225x86.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-136-350x134.png 350w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/p>\n<p style=\"text-align: center\">Figure-3: Representation of working flow of a mathematical operation using Map algebra tool. Image<\/p>\n<p style=\"text-align: center\">source: www.esri.com<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">It is also known as cartographic modeling. By use of tools, operators and functions map algebra become simple and powerful algebra and applied on raster data to achieve many informative results.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. Significance of Map Algebra<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">A variety of spatial information of earth and its atmosphere can be imported on GIS platform in a number of ways. This information can be further processed using map algebra on GIS platform to derived parameters or variables about earth and its other components which can become a early warning system, hazard zone and decision support system for planners in field of agriculture, population, urban planners. Looking into the power of map algebra through mathematical function, creative domain of GIS field might emerge as integral part of processing and modeling of huge data set pertaining to earth and its different components.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4<\/strong>.<strong> Working with Map algebra<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">It is a script language designed for manipulation of input data in form of spatial analyst in various GIS packages. In many packages like ARCGIS, it named as raster calculator. Map algebra uses simple syntax like algebra taking input\/inputs and resulting into modified output. Inputs can be single raster data set, raster layer, feature data set or shapefile. Map algebra acts as a strong tool in manipulation\u00a0<span style=\"font-size: 1em;text-align: initial\">spatial data. Manipulation can be done by applying mathematical function on of each location&#8217;s values and can be applied to a series of inputs as well.<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In order to understand map algebra properly, we need to understand its different components as explained below.<\/p>\n<p>&nbsp;<\/p>\n<p>Important component of map algebra can be understood under following sub-topics<\/p>\n<ul>\n<li>values<\/li>\n<li>operators<\/li>\n<li>function<\/li>\n<\/ul>\n<p style=\"text-align: justify\">Inputs are the very first things on which map algebra operates. Therefore inputs become values for map algebra for further processing.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Mathematical expressions like sum, subtraction or multiplication, transform the input into resulting output and therefore is termed as operator. Values and operators are also explained in figure-3 where cell values of two different (can be same also) rasters are summed up cell by cell resulting in new raster dataset. Here cell values are values and mathematical function, sum, is operator.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Map algebra operators include a range of mathematical function which is explained further. Typically the operators are categorized into following subcategories:<\/p>\n<ul>\n<li>Arithmetic Operators<\/li>\n<li>Comparison and logical operators<\/li>\n<li>Conditional Operators<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>4.1 Arithmetic Operators: <\/strong>Map algebra allows various arithmetic expressions like sum, multiplication, divide and subtraction. These mathematical expressions can have inputs of raster and constant values or raster and raster grids.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>4.2 Comparison and logical operators: <\/strong>Comparison and logical operators within map algebra includes<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-263\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-137.png\" alt=\"\" width=\"258\" height=\"142\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-137.png 258w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-137-65x36.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-137-225x124.png 225w\" sizes=\"auto, (max-width: 258px) 100vw, 258px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-264\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138.png\" alt=\"\" width=\"491\" height=\"153\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138.png 491w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138-300x93.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138-225x70.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-138-350x109.png 350w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/p>\n<div>\n<p style=\"text-align: justify\">Comparison operator can be understood by taking an example. If the resultant raster grid values is calculated as<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>Resultant Raster: = Input Raster1 &lt; &gt; Input Ratser2<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The resultant raster grid cell will store the values which will fulfill the above condition i.e. it will take only those input cell values of input rasters which are not same (True) and same grid values of input rasters will be considered as false condition. Like this the resultant raster will store the true and false assignment using the input rasters.<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-265\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139.png\" alt=\"\" width=\"379\" height=\"399\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139.png 379w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139-285x300.png 285w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139-65x68.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139-225x237.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-139-350x368.png 350w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/p>\n<div>\n<p style=\"text-align: center\">Fig-4: Logical Expressions in Map algebra. Green cell represents true values and white cell represents false values. Source: e-book, principles of GIS, An Introductary Textbook, ISSN 1567-5777<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Logical and comparison operation is diagrammatically explained in fig-4 where true and false values were calculated using comparison operator using inputs and logical operators make a decision based on provided conditions. The logical operators have been explained in little more detail (complex logical operator) the fig-5 where a condition is evaluated against a value i.e. forest cover (F) against elevation (value) or in other words logical outcomes for the criteria of forest search at different elevations.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-266\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140.png\" alt=\"\" width=\"566\" height=\"336\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140.png 566w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140-300x178.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140-65x39.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140-225x134.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-140-350x208.png 350w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\">Fig-5: Complex Logical Expressions in Map algebra. A represents classified raster for land use and B elevation values. Source: e-book, principles of GIS, An Introductary Textbook, ISSN 1567-5777<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4.3 Conditional Operators<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Conditional expressions have proved to be very useful in multiple criteria decision. By providing certain criteria, surprising outcomes can be achieved. Logical and comparison operations provide true\u00a0<span style=\"font-size: 1em;text-align: initial\">or false values but testing these statements, conditional expressions is required. Typically the conditional expression is written as:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><em style=\"text-align: initial;font-size: 1em\">Output_Raster:= CON (Condition, then_expression, else_expression)<\/em><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Here <em>condition<\/em> is the tested condition; <em>then_condition<\/em> is evaluated if condition hold, <em>else_condition<\/em> is evaluated if it does not hold.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The conditional expression CON (A= \u201cForest\u201d, 10, 0) tells that input forest pixels will be assigned a value of 10 in output raster. And a value of 0 will be assigned where the forest pixels do not exist (false Value). Another example can be taken where suitability analysis is done using landuse class and geology of the region.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Suitability= CON ((Landuse= \u201cForest\u201d AND Geology= \u201cAlluvial\u201d) OR (Landuse= \u201cGrass\u201d AND Geology=\u201dShale\u201d), \u201cSuitable\u201d, \u201cUnsuitable\u201d))<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-267\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141.png\" alt=\"\" width=\"616\" height=\"293\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141.png 616w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141-300x143.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141-65x31.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141-225x107.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-141-350x166.png 350w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\">Fig-6: Conditional Expressions in Map algebra. A represents classified raster for land use and B elevation values. Source: e-book, principles of GIS, An Introductary Textbook, ISSN 1567-5777<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-268\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142.png\" alt=\"\" width=\"598\" height=\"302\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142.png 598w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142-300x152.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142-65x33.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142-225x114.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-142-350x177.png 350w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/p>\n<p style=\"text-align: center\">Fig-7: Conditional Expressions in Map algebra to find out suitability analysis. Source: e-book, principles of GIS, An Introductory Textbook, ISSN 1567-5777<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Functions are more defined but little complex in map algebra which needed to be explained in detail. Function(s) defines specificity and region of operators being applied on raster data or datasets. On the basis of requirement, functions can extract or generate at cell to cell level information or focal information like min, max or information regarding a particular zone. Therefore it can be said in general that nature of analysis controls the functions specificity.<\/p>\n<p>&nbsp;<\/p>\n<p>So in more precise the functions in map algebra can be categorized into:<\/p>\n<ul>\n<li>Local functions<\/li>\n<li>Focal functions<\/li>\n<li>Zonal functions<\/li>\n<li>Global functions<\/li>\n<\/ul>\n<p>More importantly, these functions can be applied to one or multiple raster datasets.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4.4 Local functions<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">When an operation is processed at each individual cell value of raster data set(s), the function is termed as local function. It considers top left cell as initial cell value input and proceeds. The output\u00a0<span style=\"font-size: 1em;text-align: initial\">raster cell value thus generated is a function of cell values at the same location which was in the input layers. For example: If the provided raster of pressure data is in Pascal, it can be converted into hPa by multiplying by a constant number i.e. dividing each cell value by 10 (Constant value multiplication) or averaging two raster datasets of temperature of two different times (Multiplier Grid multiplication).<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-269\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143.png\" alt=\"\" width=\"639\" height=\"345\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143.png 639w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143-300x162.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143-65x35.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143-225x121.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-143-350x189.png 350w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<p style=\"text-align: center\">Fig-8: Map algebra local function using Grid and constant value multiplier<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">From the explained example, it is pretty clear that a number of mathematical operations can be applied on raster data set(s). Most of the functions are local in nature. The mathematical operations which are considered for local function are:<\/p>\n<ul>\n<li>Arithmetic operations (addition, subtraction, multiplication, division)<\/li>\n<li>Statistical operations (minimum, maximum, average, median)<\/li>\n<li>Relational operations (greater than, smaller than, equal to)<\/li>\n<li>Trigonometric operations (sine, cosine, tangent, arcsine)<\/li>\n<li>Exponential and logarithmic operations (exponent, logarithm)<\/li>\n<\/ul>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>4.5 Focal Functions<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">If kernel (matrix) moves over the entire data and recalculates the each grid value by considering the neighboring cell value of input raster, the function(s) is termed as focal function. Such functions are used to enhance a particular kind of information of a dataset such as boundary information among different earth features (water-land, forest-settlement boundaries) or other kind of analysis.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-270\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144.png\" alt=\"\" width=\"668\" height=\"398\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144.png 668w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144-300x179.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144-65x39.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144-225x134.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-144-350x209.png 350w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/p>\n<p style=\"text-align: center\">Fig-9: Map algebra focal function using 3\u00d73 Karnel to recalculate the output grid cell value<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Focal function can be understood by examples given in fig-9. The central cell of 3\u00d73 kernel or matrix starts rolling over top left cell of the raster data and recalculates the resultant cell values. So the top left cell has been assigned as grid-cell no-1 and horizontally next to it as grid cell no-2 and so on. The process of recalculating the resultant value using sum karnel is explained below.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">Raster data grid-cell-1 has value of 25 along with cell values of 26, 27 and 28 as neighboring grid-cell. The center grid-cell of karnel would be at the place of raster grid-cell no-1. So the recalculated grid cell-value for resultant grid-cell no-1 would be<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong><em>(Target Raster Grid-cell-value \u00d7 Karnel Central-cell-value)+ (Neighboring-cell-value) \u00d7 (Respective karnel-cell-value)<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Like this the recalculated grid cell-value for resultant grid-cell No-1 is<\/p>\n<p>&nbsp;<\/p>\n<p>(0\u00d725)+ (1\u00d726) + (1\u00d727) + (1\u00d728) = 0+26+27+28=<strong>71<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">There is only three-neighboring grid-cell for top-left grid-cell as it is at corner-cell. Likewise, the recalculated grid cell-value for resultant grid-cell No-2 is<\/p>\n<p>&nbsp;<\/p>\n<p>(0\u00d726)+(1\u00d728)+(1\u00d726)+(1\u00d727)+(1\u00d728)+(1\u00d725)=0+28+26+27+28+25=<strong>154<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">As the grid-cell lies far from corner, the number of neighboring grid-cell increases up to a maximum of eight (8). Similarly, the recalculated grid cell-value for resultant grid-cell No-12 is<\/p>\n<p>&nbsp;<\/p>\n<p>(0\u00d727)+(1\u00d728)+(1\u00d726)+(1\u00d727)+(1\u00d729)+(1\u00d726)+(1\u00d728)+(1\u00d725)+(1\u00d726)=0+28+26+27+29+26+28+25+26=<strong>215<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">There is different kind of karnel working as mean karnel, average karnel, directional karnel and inward outward karnel.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4.6 Zonal functions<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">A thematic class like Building, watershed, forest etc is considered as a zone where each cells hold same values irrespective of float or integer in nature. Zonal functions are extension of focal functions where neighborhood is defined by zones not by a specified neighborhood shape. If particular kind of information enhancement technique is applied over zone using the karnel or other spatial filters, it is termed as zonal function. It is a spatial function which is used to calculate the output cell values using the zone containing that cell. It can be better understood by taking the example of a zone of a watershed. Zonal function can be used to calculate the total mean volume of precipitation in each watershed zone. Zonal mean, zonal max, zonal sum, and zonal variety are general types of zonal function.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-271\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145.png\" alt=\"\" width=\"626\" height=\"189\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145.png 626w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145-300x91.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145-225x68.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-145-350x106.png 350w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\">Fig-10: Map algebra zonal function using\u00a0 (a) zone dataset and (b) value raster to calculate the zonal mean output raster. Source: ArcGIS Help mannual<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4.7 Global function<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">If the each output raster cell-value is a potentially function of cells combined from input rasters. To process such kind of operations, global function is required. <em>Euclidean<\/em> and <em>cost (or weighted distance)<\/em> functions are two groups of global functions. Euclidean distance is estimated from the center of the source cells to the center of each of the surrounding cells. In other words we can say that the output value of each cell is a function of the entire input raster grid. Generally the global functions are applied in distance measurement, flow directions and weighting measures.<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-272\" src=\"http:\/\/esp06.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146.png\" alt=\"\" width=\"516\" height=\"266\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146.png 516w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146-300x155.png 300w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146-65x34.png 65w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146-225x116.png 225w, https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-content\/uploads\/sites\/169\/2019\/03\/2-146-350x180.png 350w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/p>\n<p style=\"text-align: center\">Fig-11: Map algebra Global function: Calculating the Euclidean distance from a raster cell to its nearest source cell. Source: ArcGIS Help manual<\/p>\n<p>&nbsp;<\/p>\n<p><strong>5. Summary<\/strong><\/p>\n<p style=\"text-align: justify\">Geospatial technique has evolved as an integrated science tool which is being used in various fields now a day. The most exciting technique within GIS which offers a range of analytical capability is map algebra. This script based technique is applied using operators and functions resulting in more precise and useful outcomes. Operators and functions together make this technique very unique as it can handle many input criteria. While arithmetic operators provide basic mathematical capability, comparison and logical operators gives more wings to generate qualitative outputs. Adding more capability, conditional operators take many criteria or considers decision table (quantitative and qualitative) for multi-criteria analysis. On the other hand functions allow the operators to work at local, focal, zonal or global level. Map algebra has advanced more in recent years adding more functionalities depending on requirement as the domain of GIS widens. Be it forestry, urban planning, agriculture or atmospheric science, map algebra provides a scientific solution based on available inputs which serves as decision making support system.<\/p>\n<p>&nbsp;<\/p>\n<ol start=\"6\">\n<li><strong> References<\/strong><\/li>\n<\/ol>\n<ul>\n<li>desktop.arcgis.com\/en\/arcmap\/latest\/&#8230;\/spatial&#8230;\/map-algebra\/what-is-map-algebra.htm<\/li>\n<li>e-book, Principles of GIS, An Introductory Textbook, ISSN 1567-5777<\/li>\n<li>gisgeography.com \u203a GIS Analysis<\/li>\n<li>https:\/\/www.nrem.iastate.edu\/files\/w11-MapAlgebra_presentation5.pdf<\/li>\n<li>https:\/\/support.esri.com\/en\/other-resources\/gis-dictionary\/term\/map%20algebra<\/li>\n<\/ul>\n","protected":false},"author":3,"menu_order":25,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["dr-dinesh-kumar"],"pb_section_license":""},"chapter-type":[],"contributor":[61],"license":[],"class_list":["post-257","chapter","type-chapter","status-publish","hentry","contributor-dr-dinesh-kumar"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/chapters\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":3,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/chapters\/257\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/chapters\/257\/revisions\/273"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/chapters\/257\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/pressbooks\/v2\/chapter-type?post=257"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/wp\/v2\/contributor?post=257"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/esp06\/wp-json\/wp\/v2\/license?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}