Lecture 8 - Raster Analysis Flashcards
What are the different raster analysis methods (map algebra functions)?
- local operations
- focal (neighbourhood) operations
- zonal (regional) operations
- global (extended neighbourhood) operations
What is a basic display (type of values) ?
The simplest type of values to display are integers.
- each integer value can be assigned a unique colour
- legend: explains the meaning of each colour
- recoding layer before display may be required if there are too many values for the number of categories/colours available
What is map algebra?
An informal language for manipulating representations of continuous variables defined over a common domain
- provides conventions and a syntax for how operators are combined and the order they are used to create new raster layers
- ex. newlayer = input1 + input2
What are local operations?
- operate on cell-by-cell basis
- arithmetic operations only make sense if the values have appropriate scales of measurement
- ex. cannot find “average” of soil types 3 and 5, nor is soil 5 greater than soil 3 b/c they are ordinal values
What are the 3 local operations?
a. Reclassification/recoding
b. Overlay
c. Scalar
Explain reclassification/recoding
- assign new value to each unique value on input layer (useful when number of unique input values i small)
- assign new values by assigning cells to classes or ranges based on their old values (useful when old layer has diff values in each cell - ex. elevation)
- sort unique values found on input layer and replace by rank of value
- assign new values based on mathematical operations
Explain raster overlay
- create new data by combining map layers of diff features or conditions based on spatial coincidence of individual cells in input layer
- grids should share certain characteristics: geographic extent; projection; cell resolution; sampling interval
What are the three groups of mathematical operators for map algebra?
- arithmetic operators
- boolean operators
- relational operators
What are arithmetic operators?
- / - +
- allows for addition, subtraction, multiplication and division of 2 raster maps or numbers
What are boolean operators?
AND, OR, NOT, XOR
- uses boolean logic (TRUE or FALSE) on input values
- output values of TRUE are written as 1 and FALSE as 0
- each attribute can be viewed as a set
What are relational operators?
< <= <> = > >=
- evaluates specific relational conditions (min/max)
- if condition is TRUE, output is 1
- if condition is FALSE, output is 0
Explain what each boolean operator means
AND = intersection of sets (multiply) OR = union of sets (add, reclass anything greater than 1 to 1) XOR = records that belong to one set or the other, but not both (add, reclass anything greater than 1 to zero b/c can't have both) NOT = difference b/w sets (reclass to reverse - 0 to 1 and 1 to 0)
- REMEMBER, can only have binary (only 0 or 1!!), so if you add and its more than 1, you must reclass to make it 0 or 1
What are some other uses of overlay?
- cut and fill
- change detection
- many layer updates
- multivariate classification
What are some other uses of overlay?
- cut and fill
- change detection
- many layer updates
- multivariate classification
What are focal operations?
- a cell’s value in a new layer is determined by the values of the cells surrounding it on the input layer
- define neighbourhood around cell: output = f(neighbourhood values)
What are the 2 local neighbourhood (focal) operations?
a. filtering
b. slope and aspect derivation
What is filtering?
A filter operates by moving a window or kernel across the entire raster
What are the steps to filtering?
- windows (kernels) are often 3x3 cell blocks (also 5x5 and 7x7)
- compute a new value for the cell in the centre of the window based on the weighted values of the cells in the window
- changing weights (which sum to 1) can have several impacts
- smoothing (low pass filter reduces local detail)
- edge enhancement (high pass filter exaggerates local detail)
- changing distributions