Lab 4: Surface Interpolation & Terrain
Visualization
There are two
parts in Lab 4. In Part A, you will use various spatial interpolation methods
to create DEMs with different spatial resolutions. In Part B, you will use
ERADS Imagine Virtual GIS to create 3D flight-through visualization. Please
copy lab data to your working directory in c:\Students before you start. Lab
data are in Lab4a and Lab4b folders at I:\Students\Instructors\Geoffrey_Duh\GEOG4593\.
Answer and submit all questions listed at the end of both Parts A and B.
PART
A - Surface Interpolation
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. Use the
data in the Lab4a folder for Part A exercises.
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 Customize->Extensions... menu. Open ArcToolBox panel by
clicking on the red toolbox icon. Open the Resample tool in Data
Management Tools toolbox / Raster Processing 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_table.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.
- From the ArcMap TOC, right-click
on pnt300_table.dbf and select Display XY Data.... Make sure x in the X
field and y in the Y field. You can ignore the Z field. Click OK to
execute the Display XY Data tool.
- A new point event layer is
created and displayed in ArcMap. You need to export the point event 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. The first method we use is Inverse Distance Weighted (IDW). The
tool can be found at ArcToolbox/Spatial Analyst Tools/Interpolation.
Double-click to open IDW. Specify pnt300 as the input points and dem300
as the z value field. Accept 2 as the power value. 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 in ArcToolbox. 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. Accept other default values. 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. Use Ordinary Kriging
with Spherical model. 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
Raster Calculator to do the comparison.
- Start Raster Calculator. Click
the "Environments..." button to open the Environment Settings
dialog window. Click "Process Extent" to expand it. Use the
extent drop-down list to select your IDW 30 meter layer (i.e., dem30idw)
as the analysis extent. Click OK to activate the setting.
- On Raster Calculator, use the
layers selection list to calculate the difference between dem30n
and dem. That is, select dem30n from the layers selection list,
then click minus ("-"), and select dem to complete the formula.
Name the output as diffnear and save it to your workspace. Click OK
to execute.
- Repeat steps 16 to create diffcubic,
diffidw, diffspl, and diffkrg. Open the Properties
windows of these layers and select the Source tab to view their
statistics. Use the information 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. Use excel or Windows'
calculator to calculate the square root of the mean values of the squared
layers 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
|
RMSE
|
diffnear
|
|
|
|
|
diffcubic
|
|
|
|
|
diffidw
|
|
|
|
|
diffspl
|
|
|
|
|
diffkrg
|
|
|
|
|
- Based on the table above, which interpolated 30 meter DEM
is the best? Please explain.
PART B: 3D Terrain
Visualization
In this lab, you will use ERDAS Imagine's Virtual GIS module to do 3D visualization and
animation. This is another opportunity to learn and explore the ERDAS Imagine
software and to get acquainted with the interface. Use the help system to learn about the different
software options and functionality. Type the answers to all questions at the
end of each task, attach your map, and submit them to the instructor. Use the
data in the Lab4b folder for Part B exercises.
Instructions
You will
use the Virtual GIS module of ERDAS Imagine to create 3D images and fly
animation.
1.
Start ERDAS Imagine 2011. Open the online
document of Imagine Virtual GIS User's Guide. You can find it from the Imagine
2011's main menu. Select Help -> User Guides -> Virtual GIS User Guide to
open the pdf document.
2.
Browse the IMAGINE VirtualGIS introduction section
(pp 1 - 8) and do the exercises in the IMAGINE VirtualGIS
Tour Guide section (pp 27 - 59). Please note that this lab requires a lot of
patience and experiments to produce a good fly-through effect. Familiarity with
the various options on the Flight Path Editor and the Animation Tool dialog
window is the key to a smooth flight!
3.
Please note that the IMAGINE software has lots of kinks and bugs. For
example, the screen might not refresh correctly. You can minimize the windows
and reopen it again to refresh it "manually." If the software failed
to perform the tasks listed in the instructions, please exit from the software
and restart it.
4.
Page 56. Importing a model. Step 4 shows the correct step to create a
model layer. To import a model, first select the model layer you just created
from the Contents panel. The "Model" tab shows up. Click on the tab
and select Model Library and import ah64.dxf aircraft into your VirtualGIS
scene.
Additional
Tips:
1. To view the helicopter model, use a formula to increase the
Time of the camera's keyframes by 0.1 seconds. This will put camera behind the
helicopter at a distance.
2.
Use recoding tools on the Scene tab of
Imagine's main menu to record your video with your model. Save the file path in
your working directory, select Microsoft .avi for the
format, and set the compression ratio to Microsoft Video 1 with a compression
quality of around 50. You need to hit the play button on the
animation tool to start the recording. The size of the 3D viewer
determines the dimensions of the output movie. Make sure you adjust the viewer
size to get the best/pleasing visual effects.
Questions
- Create and submit 3-5 screen shots of your animated flight
over Palm Springs, California.
Briefly describe the flight and the techniques you used to create the
animation.
- Provide the filename of your flight movie avi, its path, and computer name in the space below,
so that the instructor can have access to the move file. Make sure you put the file under the C:\Students folder.
Click here to see a demo of the animated
flight.
Computer name (e.g., ch469c42)
|
|
Path (e.g., C:\Students\jduh\lab4b)
|
|
File Name (e.g., lab4_tour.avi)
|
|