Lab 4: Surface Interpolation
Due Nov 12
Introduction
This lab involves the “resampling” of a DEM to different spatial resolutions using
various spatial interpolation methods in ArcGIS. Type
the answers to all questions at the end of each task, attach your maps, and
submit them to the instructor.
Copy Lab4 folder in the I:\Students\Instructors\Geoffrey_Duh\GEOG4593\
folder to your workspace.
Instructions
This exercise guides you through the process of resampling a DEM to a coarse and a finer resolution. You
will also convert a DEM to a gridded point feature class, then, use Inverse
Distance Weighted (IDW), spline, and Kriging to interpolate the point data to form DEMs. The
purpose of these exercises is to let you learn the methods to generate DEMs at
various resolutions and understand the limitation of these methods.
- Add the dem grid in your
lab folder to ArcMap. Check if the grid has a 30
meter cell size and a UTM projection. You need to fill in the column and
row numbers in the blank table of Question 1.
- Enable Spatial Analyst extension from the
Tools->Extensions… menu. Open ArcToolBox
panel by clicking on the red toolbox icon. Open the Resample tool in Data
Management Tools toolbox / Raster toolset. Specify dem
as the input raster, dem300 as
the output raster (make sure you save it to your workspace!), and
300 as the output cell size. Check that the resampling
technique is “NEAREST.” Click OK to continue.
- Now you have created a 300 meter DEM by resampling. Check if the grid has a 300 meter cell
size.
- Use the same Resample tool to resample dem300 to 30 meter DEMs using the
following settings to create two output DEMs:
|
Input raster
|
Output raster
|
Output cell size
|
Resampling method
|
|
Dem300
|
Dem30n
|
30
|
NEAREST
|
|
Dem300
|
Dem30c
|
30
|
CUBIC
|
- We now try another approach to resample the 300 meter
DEM to finer resolutions. First we need to convert the DEM grid into elevation
points. Open the Sample tool in Spatial Analyst Tools toolbox / Extraction
toolset. Specify dem300 as the input raster and as the input location
raster, pnt300.dbf as the output, and NEAREST as the resample technique.
Click OK to continue.
- When done, pnt300.dbf is added to ArcMap
automatically. Take a look at the content of the table.
- Select Add XY Data… from ArcMap’s
Tools pull-down menu. Make sure pnt300.dbf is displayed in the top box, x
in the X field, and y in the Y field. Click Edit…, then Import, and select
dem300 to set the projection information. When done, click OK to execute
the Add XY Data tool.
- A new point feature class is created and displayed in
ArcMap. You need to export the point data to a shapefile to make them permanent. Right click on the
pnt300 events layer in ArcMap, select Data /
Export Data, and save the output as pnt300.shp. You can change the layer symbology of pnt300.shp to display the elevation
values (stored in the dem300 field) using graduated symbols.
- Now we will use spatial interpolation techniques to
generate DEMs from the point data set we just created. First, display the
Spatial Analyst Toolbar using the View / Toolbars menu. Select Inverse
Distance Weighted… from the Spatial Analyst / Interpolate to Raster… menu.
Specify pnt300 as the input
points and dem300 as the z
value field. Change search radius type to fixed, the search distance to 300, the output cell size to 30, and the output raster to dem30idw (make sure you save it to your workspace!)
- The DEM automatically added to ArcMap
uses a symbology that is difficult to show the
subtle variations in the DEM. Change the symbology
of the DEM layer from “classified” to “stretched”. With this display
option, the DEM is displayed as a grayscale map that shows the detail of
the terrain.
- Now we use the Spline tool
to do the spatial interpolation. Open the Spline
tool from the Spatial Analyst / Interpolate to Raster… menu. Specify pnt300 as the input points and dem300 as the z value field.
Change spline type to Tension, output cell size to 30, and output raster to dem30spl.
Click OK to generate the DEM.
- Now we use the Kriging tool
to do the spatial interpolation. Open the Kriging
tool. Set pnt300 as the input
points and dem300 as the z
value field. Change search radius type to fixed, the search distance to 300, the output cell size to 30, and the output raster to dem30krg. Click OK to generate the DEM.
- After generating all these terrain surfaces, we face
the question of which one is the best 30 meter DEM that we created based
on a 300 meter DEM (or point data set). We can do this either visually or
quantitatively.
- There are many ways to assess the accuracy of
interpolated data. Since we have the original 30 meter DEM, we can compare
each interpolated DEM with the original DEM. We will use Spatial Analyst’s
raster calculator to do the comparison.
- Select Options… from the Spatial Analyst pull-down
menu. Use your IDW 30 meter layer (i.e., dem30idw) to define the analysis
extent. Click OK to activate the setting.
- Open raster calculator from the Spatial Analyst
pull-down menu. Use the layers selection list to calculate the difference
between dem30n
and dem.
That is, select dem30n from the layers selection list (the displayed name
of the layer might be different, but you can tell it’s
dem30n), then click minus (“-“), and select dem
to complete the formula. Click evaluate to
execute.
- When done, a new layer is added to ArcMap. You need to make it permanent and put it into
your workspace. Right-click on the layer name and select make permanent.
Save the output as diffnear.
- Repeat steps 15 and 16 to create diffcubic, diffidw, diffspl,
and diffkrg.
Open the Properties window and select the Source tab to view the statistics
of these layers and use them to complete the blank table in Question 4.
- Use the raster calculator to calculate the square
(e.g., diffnear * diffnear)
of the difference surfaces. Open the Properties window of these squared
difference surfaces and select the Source tab to view the statistics of
these layers. Calculate the square root of the mean values to derive the
RMSE (root mean square error). Use these values to complete the table in
Question 4.
Questions
- Using
the information displayed in ArcMap to complete
the table below.
|
Grid
|
# of Columns
|
# of Rows
|
|
Dem
|
|
|
|
Dem300
|
|
|
|
Dem30n
|
|
|
|
Dem30c
|
|
|
- Create and submit maps of dem,
dem300, dem30n, dem30c, pnt300.shp, dem30idw, dem30spl, and dem30krg. You
can put multiple maps in one page. Each map should be clearly labeled with
a title and a sentence describing how it was created.
- Which
interpolated 30 meter DEM is the best based on your visual inspection?
Why?
- Using
the information displayed in ArcMap to complete
the table below.
|
Grid
|
min
|
max
|
mean
|
stdv
|
RMSE
|
|
diffnear
|
|
|
|
|
|
|
diffcubic
|
|
|
|
|
|
|
diffidw
|
|
|
|
|
|
|
diffspl
|
|
|
|
|
|
|
diffkrg
|
|
|
|
|
|
- Based
on the table above, which interpolated 30 meter DEM is the best? Please
explain.