UNM Header UNM Home Page Civil Engineering Home Page

CE547 - Assignment #4  (due Feb 24)

This assignment will show you the first step of many hydrologic analyses, basin delineation.

1)  Download data and add to map
  1. Download data
  2. Import coverage
  3. Adding toolbar
  4. Mosaic rasters
  5. Colorize raster
  6. Fill holes in raster
2)  Hydrologic Modeling
  1. Flow direction
  2. Flow Accumulation
  3. Stream definition
  4. Stream network creation
  5. Defining outlets
  6. Delineate watersheds
  7. Review files
3)  Add map to website
4)  Model Builder
  1. Start Model Builder
  2. Fill DEM
  3. Flow direction
  4. Flow accumulation
  5. Stream definition
  6. Stream network
  7. Outlets
  8. Watershed
  9. Run model



1)   Download and prepare data for analysis

a)  Download data:  The files for this project are called ArcInfo Interchange files.  An interchange file contains all coverage information and appropriate INFO table information in a fixed-length ASCII format.

You will need these three files:  E177.E00  E178.E00  EE179.E00  Save them to your map working directory.

b)  Import E00:  Activate the ArcToolbox to convert the interchange files into coverages. Click on the red tool box icon. From Conversion Tools > To Coverage > Import from E00

Coverage

c)  Adding toolbar:  Add the three coverage files into your new map document. Click Customize > Toolbars to check Spatial Analyst for later use of special tools in ArcToolbox. A new toolbar should be on your desktop.  Dock the toolbar to more convenient location on your screen.

Add Coverage

d)  Mosaic rasters:  Since three files are not continuous, we need to use the mosaic tool from the ArcToolbox to make them a continuous surface. Click on data Management Tools > Raster > Raster Dataset > Mosaic. The input raster files are the three downloaded ones. The target raster is the first raster on the list of input raster files. The new raster 177 now gets the lowest elevation from raster 178 and the highest elevation from raster 179.

Mosaic

e)  Colorize Raster:  Now change the color ramp of the adjoined raster from the Symbology tab in the Layer Properties. Remove raster layers 178 & 179 from the map document. Right click on Properties of raster 177, from the General tab, change the name of raster 177 to a more descriptive name.

Symbology

Colorized Raster

f)  Fill holes in raster:  From the ArcToolbox, use Spatial Analyst Tools > Map Algebra > Raster calculator to open the Raster Calculator window. The adjoined raster may have some NO DATA cells due to the imperfection of the data. You need to fill the surface by using the ArcToolbox tool: Spatial Analyst > Hydrology > Fill.

Fill

Now you have a DEM that is prepared for hydrologic modeling.

2) Hydrologic Modeling

a)  Flow direction:
Raster Calculator expression: FlowDirection(“Filled_DEM”). The “Filled_DEM” is the name of the raster file I use. You may have given it a different name than mine.

Flow Direction

Or ArcToolbox: Spatial Analyst > Hydrology > Flow Direction

Flow Direction

There are eight valid output directions relating to the eight adjacent cells into which flow could travel. This approach is commonly referred to as an eight-direction (D8) flow model.

Flow Direction

b)  Flow Accumulation:
Raster calculator expression: FlowAccumulation("Flow_Dir"). Again my “Flow_Dir” may have a different name than yours.

Flow Accumulation 

Or ArcToolbox:

Flow Accumulation

The result of Flow Accumulation is a raster of accumulated flow to each cell, as determined by accumulating the weight for all cells that flow into each downslope cell. Zoom to the box on the left of the screen since the stream network (The Rio Puerco) is more continuous in this area.

Flow Accumulation

c)  Stream definition:
Each cell has an approximate size of 60 m x 60 m and the drainage area threshold is defined to be greater than 1 km2. Therefore, in 1km2 there are about 278 cells. All cells with more than 278 cells flowing into them will be defined as streams.
The raster calculator expression is: Con("Flow_Accu">278,1)

Stream Definition

Stream Definition

Convert the raster stream into polyline features based on the vectorization of rasters.
Arctoolbox: Spatial Analyst > Hydrology > Stream to Feature

Stream Definition

Stream Definition

d)  Stream network creation:
Raster calculator expression: StreamLink("Streams","Flow_Dir")

Stream Network

Or ArcToolbox: Spatial Analyst > Hydrology > Stream Link

Stream Network

Stream Link

e)  Defining outlets:
Raster calculator expression: ZonalStatistics("Streams_Network", "Value", "Flow_Accu", "Maximum"). You need to have a space after each comma in the command line. Otherwise, you’ll get an error message. This function is similar to the zonalmax expression in ArcGIS 9 which no longer works for ArcGIS 10.

Defining outlets

Raster calculator expression: Con("ZonalMax"=="Flow_Accu","Streams_Network"). Do not leave any space between the two equal signs or you’ll get an error message. If you are familiar with ArcGIS 9, you may notice that the Conditional function is capitalized in ArcGIS 10.

ZonalMax

The screen capture below shows the colored outlets with the stream polyline features.

Outlets

f)  Delineate watersheds:
Now let’s use the outlets and flow direction rasters to delineate the watershed.
Raster Calculator expression: Watershed("Flow_Dir", "Outlets").

Basin Delineation

Basin Delineation

From the Properties of the newly created Watershed raster, there are 153 sub-basins based on the stream threshold we defined previously.
Export the sub-basins of the watershed into polygons:
From ArcToolbox: Conversion Tools > From Raster > Raster to Polygon

Raster Polygon

Raster to Polygon

g)  Review files:
Go to your Geodatabase in Catalog menu along the right side of your screen. You will be surprised to see how many new files you have created for this assignment.

Final Map Layout:

Final Map


3)  Add finished map to website

Export finished map showing your basin delineation and add to your website.

4) Model Builder (optional):


a)  Start ModelBuilder:  Geoprocessing > ModelBuilder

After you added the three rasters and merged them, you can start the model builder.

Model Builder

The sequence of steps is similar to all of the work you just did before making the final map layout. However, once you have created your model, you can use it for different inputs and it automates the calculations for you. You can save your model as one comprehensive tool in your ArcToolbox which includes all steps to delineate a watershed.

b)  Fill DEM:
From the ArcToolbox, Hydrology > Fill. Drag the Fill tool into the Model Builder window. Double click on the Fill tool, it opens up a window for your input and output rasters.

Fill  Fill

c)  Flow Direction:
Drag in the Flow Direction tool. Use the connect icon on the Model Builder window to connect Filled_DEM to the Flow Direction tool.

Flow Direction

d)  Flow Accumulation:
Drag the Flow Accumulation tool in. Use the connect icon to connect Flow_Dir with the Flow Accumulation tool.

Flow Accumulation

e)  Stream definition:
From ArcToolbox, use Spatial Analyst Tools > Conditional > Con. Drag the Con tool into the model window. Connect Flow_Accu with the Con tool. Follow the Con tool window for inputs.

Stream Definition

Con

f)  Stream Network:
Drag the Stream Link tool into the model window. Connect Streams with the Stream Link tool.

Stream Network

Stream Network

g)  Outlets:
From the ArcToolbox, go to Spatial Analyst > Zonal > Zonal Statistics. Drag the tool into the model window.

Outlets

Outlets

From the ArcToolbox, use 3D Analyst > Raster Math > Minus. Drag the minus tool into the model window.

Difference

Difference

From the ArcToolbox, use Spatial Analyst > Conditional > Con. Drag the Con tool into the model window.

Difference

Difference

h)  Watershed:
From the ArcToolbox, use Spatial Analyst > Hydrology > Watershed. Drag the Watershed tool into the model window.

Watershed

Watershed

i)  Run Model:
Click on Model > Run to test your model. You can save this model as Delineation Tool in the ArcToolbox.