Lecture 14: More Raster and Surface Analysis in Spatial Analyst ------Using GIS-- Introduction to...

Preview:

Citation preview

Lecture 14:More Raster and Surface Analysis in

Spatial Analyst

------Using GIS--Introduction to GIS

Lecture notes by Austin Troy, University of Vermont

©2005 Austin Troy

Converting vector to raster

------Using GIS--Introduction to GIS

Can convert raster to vector or vice versa. When converting vector to raster, must specify an attribute field upon which raster z values will be based. When just yes/no, must often create a new field. Example: protected areas

©2005 Austin Troy

Converting vector to raster

------Using GIS--Introduction to GIS

Or you may be converting based on a variable, like land use

©2005 Austin Troy

Proximity

------Using GIS--Introduction to GIS

Can use raster distance functions to create zones based on proximity to features; here, each zone is defined by the highway that is closest

©2005 Austin Troy

Distance Measurement

Can create distance grids from any vector feature based on straight line

------Using GIS--Introduction to GIS

©2005 Austin Troy

Distance MeasurementCan also weight distance based on friction factors, like slope

------Using GIS--Introduction to GIS

©2005 Austin Troy

Density Functions

Introduction to GIS

•We can also use sample points to map out density raster surfaces. This need to require a z value in each, it can simply be based on the abundance and distribution of points.

©2005 Austin Troy

Density Functions

Introduction to GIS

•These settings would give us a raster density surface, based just on the abundance of points within a “kernel” or data frame. In this case, a z value for each point is not necessary.

©2005 Austin Troy

Neighborhood Statistics• From last lecture: this

is a “local” method of summarizing raster data within a neighborhood by a statistical measure, like mean, stdv, min

Introduction to GIS

©2005 Austin Troy

Neighborhood Statistics• In Arc GIS,

neighborhood statistics command allows you to specify statistic:– Min, max, mean, standard

deviation, range, sum, variety

Introduction to GIS

©2005 Austin Troy

Neighborhood Statistics• Neighborhood statistics creates a new grid

layer with the neighborhood values

• This can be used to:– Simplify or “filter down” the features represented– Emphasize areas of sudden change in values– Look at rates of change– Look at these at different spatial scales

Introduction to GIS

©2005 Austin Troy

Neighborhood Filters• Generating neighborhood means is similar to

RS technique called low pass filtering:– Low pass filtering: takes “tonally rough”

surfaces, with abrupt changes in cell values, and makes those values vary more smoothly.

• The opposite is called a high-pass filter.– High pass filtering: emphasizes detailed, abrupt

changes in cell values, deemphasizes areas of gradual change.

Introduction to GIS

©2005 Austin Troy

Low Pass filteringUsually in low-pass filtering, the median is used instead, but the

concept is similar.Low-pass filters emphasize overall, general trends at the expense of

local variability and detail.It serves to smooth the data and remove statistical “noise” or extreme

values that occur in isolation or small patches.While lose feature detail, different from changing resolution;

Resolution of cells stays the same.The larger the neighborhood, the more you smooth, but the more

processing power it requires.A circular neighborhood has the effect of rounding the edges of

features a little more.

Introduction to GIS

©2005 Austin Troy

High Pass filteringOne way of obtaining this is by subtracting a low pass

filtered layer from the original.This serves to emphasize and highlight areas of tonal

roughness, or locations where values change abruptly from cell to cell.

The result is to emphasize local detail at the expense of regional, generalized trends.

Summarizing a neighborhood by standard deviation is another form of high pass filter.

Introduction to GIS

©2005 Austin Troy

Why do we care about this?• Low pass filtering: filtering out anomalies

Introduction to GIS

Bathymetry mass points: sunken structures

©2005 Austin Troy

Why do we care about this?• After turning into raster grid

Introduction to GIS

We see sudden anomaly in grid

Say we wanted to “average” that anomaly out

©2005 Austin Troy

Why do we care about this?• Try a low-pass filter of 5 cells

Introduction to GIS

We can still see those anomalies but they look more “natural” now

©2005 Austin Troy

Why do we care about this?• Try a low-pass filter of 25 cells

Introduction to GIS

The anomalies have been “smoothed out” but at a cost

©2005 Austin Troy

What about high pass filters?• Say we wanted to isolate where the wreck was

Introduction to GIS

All areas of sudden change, including our wrecks, have been isolated

©2005 Austin Troy

Neighborhood Statistics• Example, using a DEM showing elevation

Introduction to GIS

©2005 Austin Troy

Neighborhood StatisticsA low pass filter of the DEM done by taking the mean values for a

3x3 cell neighborhood: notice it’s hardly different

Introduction to GIS

DEM Low pass

©2005 Austin Troy

Neighborhood StatisticsBut if we take the mean for a 10 unit square neighborhood…

Introduction to GIS

Notice how much smoother it is; note also how much less detail there is in this low pass filter

©2005 Austin Troy

Neighborhood StatisticsNow, here’s one with a 20 unit square neighborhood

Introduction to GIS

©2005 Austin Troy

Neighborhood StatisticsHere’s one with a 10 unit radius circular neighborhood

Introduction to GIS

The only difference from 20 unit square is that edges are more rounded

©2005 Austin Troy

Neighborhood StatisticsHere’s one with a 20 wide x 5 tall unit rectangular neighborhood

Introduction to GIS

Note how there is more detail in the vertical axis (features facing left and right) than in the horizontal axis (features facing down and up); so horizontal feature detail is resampled to a lower resolution than vertical feature detail

©2005 Austin Troy

Neighborhood StatisticsHere’s what it looks like the other way: 20 tall x 5 wide

Introduction to GIS

Here note better feature definition for features along the horizontal axis, with more detail to features facing down or up

©2005 Austin Troy

Neighborhood StatisticsIn this high-pass filter the mean is subtracted from the original

Introduction to GIS

It represents all the local variance that is left over after taking the means for a 3 meter square neighborhood

©2005 Austin Troy

Neighborhood StatisticsWe do this using the map calculator

Introduction to GIS

©2005 Austin Troy

Neighborhood StatisticsIf we do a high-pass filter by subtracting from the original the

means of a 20x 20 cell neighborhood, it looks different because more local variance was “thrown away” when taking a mean with a larger neighborhood

Introduction to GIS

Dark areas represent things like cliffs and steep canyons

©2005 Austin Troy

Neighborhood StatisticsUsing standard deviation is a form of high-pass filter because it is

looking at local variation, rather than regional trends. Here we use 3x3 square neighborhood

Introduction to GIS

©2005 Austin Troy

Neighborhood Statistics

• Note how similar it looks to a slope map.• This is because it is showing standard deviation, or normalized

variance, in spot heights, which is similar to a rate of change.• Hence it is emphasizing local variability over regional trends.• The resolution of the slope is quite high because it is sampling

only every nine cells.• When we go to a larger neighborhood, by definition, the resulting

map is much less detailed because the standard deviation of a large neighborhood changes little from cell to cell, since so many of the same cells are shared in the neighborhood of cell x,y and cell x,y+1.

• Look at the following as an example.

Introduction to GIS

©2005 Austin Troy

Neighborhood Statistics• Here is the same function with 8x8 cell neighborhood.

Introduction to GIS

Here, the coarser resolution due to the larger neighborhood makes it so that slope rates seem to vary more gradually over space

©2005 Austin Troy

Neighborhood StatisticsHere’s what it looks like with a circular 4 unit radius neighborhood

Introduction to GIS

You can see that an 8 unit diameter circle gives slightly more detail and fine resolution than an 8 unit square (if you look closely)

©2005 Austin Troy

Neighborhood StatisticsLater on we’ll look at filters and remote sensing imagery, but here

is a brief example of a low-pass filter on an image that has been converted to a grid. This can help in classifying land use types

Introduction to GIS

Recommended