Professional Documents
Culture Documents
Map algebra basically involves doing math with maps but the key difference is
that it only applies to raster data. That’s why we also call it raster math.
Values are the 'things' on which the algebra operates. Input data and
output data (results) are presented as grids of values. Values can be
categorical (nominal or ordinal) or numerical.
1|Page
Types Of Map Data Algebra
As said, map algebra uses math-like operations. For example, you can apply
simple math like addition or multiplication to update raster cell values.
The most common type of map algebra is a cell-by-cell function. This type has
raster directly stacked on top of one another. Then, the function applies to cells
aligned with each other.
But you can also change the configuration so it’s not only cell-by-cell. Here are
the types of map algebra operations that you can use:
1. Local
2. Focal
3. Zonal
4. Global
1. LOCAL OPERATION
The simplest approach is map algebra on a cell-by-cell basis. For example, you
have 2 raster stacked on top of each other. Then, you add each cell one-by-one.
If raster cells represent temperature, you can subtract them both at different
time periods. By using a local operation, you can find the difference in
temperature for each cell.
2|Page
For example, If you were to take a snapshot of land surface temperature in
April 2015. Then, if you took April 2014 land surface temperature, When you
subtract April 2014 from April 2015 for land surface temperature, it shows the
difference between temperature for two given periods.
This is an example of a local operator because it subtracts each cell from one
year to another. It’s also an example of an arithmetic operator because it uses
subtraction.
3|Page
2015
2014
Cells overlap with a range of -25° to +45°C. Then, we subtracted 2014 from
2015 land surface values for each cell. As a result, the output map has a range
from -40° to +40°C.
4|Page
What’s special about this is that you can pinpoint cells with the greatest
difference. If values are positive, this means that 2015 land surface
temperatures were hotter. But if values are negative, this means that 2015 land
surface temperatures were colder.
What happens when you have null values? Null isn’t a numerical value. If there
are null values in any of the raster cells, they will remain as null in the output
raster.
Local operations can also be performed on multiple input rasters. In this case, a
single value will be returned for each cell based on some operation being
applied to the corresponding cell in each of the input rasters. An example of
this type of operation is using the Cell Statistics tool: for each output cell, a
statistical calculation (such as the mean or range) is performed on the cell
values of all the input rasters at that corresponding location.
2. GLOBAL OPERATION
Global operations apply a bulk change to all cells in a raster. If you want to add
a value of 1 to all grid cells, this is a global operation.
Euclidean distance global operations assign to each cell in the output raster
dataset its distance from the closest source cell. An example of a source may be
the location from which to start a new road. The direction of the closest source
cell can also be assigned as the value of each cell location in an additional
output raster dataset.
5|Page
Non-Euclidean (Weighted) Distance Global Operations
3. FOCAL OPERATION
6|Page
Focal operations are spatial functions that compute an output value of each cell
using neighborhood values. For example, convolution, kernel, and moving
windows are focal operations.
7|Page
Moving Window: A moving window is a rectangular arrangement of cells that
shifts in position. By applying an operation to each cell from a moving
window, it commonly smooths values in a raster.
4. ZONAL OPERATION
Zonal operations apply a math function to a group of cells within a specified
zone. For example, a zone could be a vector or raster format.
If you want to find out how much rain is in a watershed, you can use a zonal
operation. By using a raster with precipitation, you can set your zone as a
watershed with a sum function.
8|Page
Zonal operations compute an output raster dataset where the output value for
each location depends on the value of the cell at the location and the
association that location has within a cartographic zone. Zonal operations are
similar to focal operations except that the definition of the neighborhood in a
zonal operation is the configuration of the zones themselves, not a specified
neighborhood shape. Individual zones can be of any shape or size and can be
disconnected from each other. Zones can be defined either as raster or feature
data. For raster data, a zone is all cells with the same value. For feature data, a
zone is all features with the same attribute value (LandClass = 4, for example).
MATHEMATICAL FUNCTIONS
Here are examples of operations that you can use for map algebra:
9|Page
1. Map Algebra is a simple and powerful algebra with which you can execute
all Spatial Analyst tools, operators, and functions to perform geographic
analysis.
2. Map Algebra is available through the Spatial Analyst module; an extension
of the ArcPy Python site package.
3. As Map Algebra has been integrated in Python, all the functionality of
Python and ArcPy and its extensions (modules, classes, functions, and
properties) is available to you.
CONCLUSIONS
Here we have described the fundamentals of a network map algebra that
supports the process of synthesizing solutions to network-based location-
selection problems. This algebra relies on the transformation of scenarios into a
set of matrix representations that are then manipulated by operators. These
abstracted realizations of solutions to location-selection problems can be
passed among users as tokens that are used to generate maps. The entire
detailed network (e.g., TIGER file) need not be passed each time a solution is
developed. Rather, the network representation is static, and the structures are
used to symbolize results, thus resulting in a substantial reduction in network
traffic.
10 | P a g e