Introduction to Geographic Information Systems in Forest Resources
UW Home GIS@UW Search
Syllabus Schedule Class Meetings Assignments Course Data Internet Search

Current Grades

Contact Us CFR 590 Internet-only section Lab Locations  


Exercise: Hydrologic Modeling and Watershed Delineation

  1. Start ArcView and open a new project
  2. Create a grid subset
  3. Watershed Delineation
    1. Creating a depressionless DEM
    2. Flow direction
    3. Flow accumulation
    4. Watershed outlet points
    5. Delineating watersheds
  4. Automatically delineating watersheds
  5. Calculating watershed metrics
  6. Raster to vector conversion
    1. Converting a watershed grid theme to a polygon theme
    2. Stream network as line shape
    3. Centroid as point shape
  7. Watershed visualization

 


Start ArcView and open a new project

  1. Delete everything from your Zip disk.

  2. Download the project hydro.apr onto your Zip drive..

  3. Using the startup project, open the hydro.apr project.

  4. Enable the Spatial Analyst Extension.

  5. Enable the Hydrologic Modeling v1.1 (sample) Extension. Note the version of the extension!

 


  Create a grid subset

  1. Add the grid theme Dem to the view.

  2. Add the Streams line feature theme.

  3. Perform a query on the Streams theme to select 27 Creek.



  4. With the Streams theme active, click the Zoom to Selected button .
    1. Zoom out one step .
    2. Keep the relative proportion of your view (in X and Y) nearly square.
    3. The selection and zoom process is used only to set the display area for grid processing.
    4. Your view should look something like this (assuming you alter the dem theme's legend in the same way I did):



  5. Set the analysis properties to the current display extent and the cell size of the Dem grid theme.



  6. Create the new grid theme subset with a Map Calculator operation:



    This will create a grid subset.

  7. Do NOT save the project (yet). If you do, you will be making the new grid permanent, and this will take up needed space on the Zip disk.

  8. Delete the Dem grid theme from the project. Zoom out one step.

    Do you see how we used a selection, set the display area, and used the display area for the output analysis extent? If it did not before, does the analysis extent make sense now?
    Now your view should look like this:



  9. Rename the Map Calculation 1 theme to Dem_clip (Theme > Properties).

 

You have just created a new grid theme of elevation values, but limited to a small spatial extent. Processing will be much faster with this small grid, rather than using the entire forest area.

 


Watershed Delineation

 

  1. Make the Dem_clip theme active.

  2. From the Hydro menu, select Fill Sinks.

    While the grid is filling, you might want to entertain yourself with the Onion.

  3. After a few minutes, a new theme, Filled Dem_clip, will be added to the view.
    This is the same data set as Dem_clip, but any areas of internal drainage are filled in.

  4. Save the new theme:
    1. Make the new theme (Filled Dem_clip) active.
    2. Select Theme > Save Data Set from the menu. (Note that if you have saved the project, the Save Data Set choice will be unavailable, as the temporary grid will already have become permanent.
    3. Accept the default name of fill1.

      Saving temporary grids before saving the project is important so that you can have an opportunity to give the permanent grid a location and name, rather than using ArcView's default choice. This is especially important if you are using an AutoSave extension. If you are using AutoSave, you should definitely save the data sets with a name you can recognize later.

  5. Delete the Dem_clip theme from the view, since you will be working on the filled grid from this point on. The grid data source for Dem_clip (calc1) should automatically be deleted when the theme is deleted.

  6. If you want to save the project now, check that the calc1 directory is gone from the Zip disk before you save.


    It is important to have a depressionless DEM for all subsequent hydrological analyses.

 

  1. Make the Filled Dem_clip theme active.

  2. Select Hydro > Flow Direction from the menu.

  3. When the new theme (Flow Direction) is added, save the theme (do not simply rename it in the view) with the default name fdir1.

  4. Turn off the Filled Dem_clip theme.

  5. Turn the Flow Direction theme on. Note that the numbers refer to coded direction of flow.




    Direction of flow must be known for each cell, because it is direction of flow that determines the ultimate destination of water flowing across the surface.

 

  1. Make the Flow Direction theme active.

  2. From the Hydro menu, select Flow Accumulation.

  3. When the new theme is added, save it with the default name facc1.

  4. Turn off the Flow Direction theme and turn on the Flow Accumulation theme.

  5. Alter the legend for this theme.
    1. Use only a single class.
    2. Make No Data cells transparent.
    3. Alter the value to show only high-flow cells (you should only need to change the lower limit of the Value range, keeping the higher limit; your higher limit may be different from mine).




      Now those cells which have at least 5000 cells upstream are displayed in red. All other cells are transparent. Note: you will need to zoom in before you can see the details of the flow network.

      Flow accumulations are important because they allow us to locate cells with high cumulative flow. Pour points must be located in cells of high cumulative flow, or the resultant watersheds will be very small.

 

  1. Create a new point theme by selecting View > New Theme from the menu.

  2. Name the new theme pour_pts.

  3. Zoom in before adding any points. The boxes in this view show the general location of the points which you will add. Refer to the images below for more precise placement. These boxes do not appear on the view, but are only displayed here to orient you.




    Note the position of 27 Creek (the stream network in the center of this image of the view). One watershed we are creating is just west of 27 Creek's confluence with the Mashel River. At that location, there is no stream in the vector data. The other watershed (Little Mashel) is east of 27 Creek .

  4. Zoom into the area defined by the westernmost box.

  5. Using the Add Point tool, add a single point within a high-flow cell, as shown here. Direction of flow is east to west, so this outlet point will create a single watershed upstream on both flow networks.

    You must zoom in quite a way to do this, otherwise your pour point may not be located within a high-flow pathway!




    Use the Identity tool to examine the values of the Flow Accumulation theme. You will be able to tell which direction is upstream (lower accumulation value) and which direction is downstream (higher accumulation value).

  6. Zoom back out to full view.

  7. Zoom into the area defined by the easternmost box .

  8. Add a single pour point within the high-flow network. Note that this point is at the confluence of the two flow segments, so will create a watershed that contains upstream areas of both streams.




    Everything upstream from each one of these points will define a single watershed.

  9. Open the theme table for the Pour_pts theme. Alter the ID field to represent unique values for each different record (e.g., 1 and 2). Once you have added the points and altered their IDs, stop editing the theme, making sure to save the edits. If you do not alter the ID values for the points, you will not generate unique watershed areas.

  10. Clear any selected set for the Pour_pts theme.

  11. Zoom to the extent of the Pour_pts theme.

  12. Set the Analysis Extent to Same as Flow Direction.

  13. Convert the Pour_pts theme to a grid theme, using ID as the conversion field. Call the new theme pourg.



  14. Add the new theme to the view. Alter the drawing order so you can see all the themes clearly.



    If the Analysis Extent and cell size do not match an existing theme, there may be problems of registration between the outlet grid and the other grids necessary to delineate watersheds. Therefore, it is always a good idea to set your cell size and analysis extent relative to an existing grid theme.

    Note that the new Pourg theme cell covers the place where the last pour point was added. You should pan and zoom to verify that the Pourg cells are indeed located in a high-flow pathway. If the outlet grid cells are not in high-flow pathways, the watersheds you create will be small. If the outlet cells are not directly "over" the flow path, you will not create watersheds that represent large drainage areas.

 

  1. Click the Watershed! button . If you do not see the button, maximize the ArcView application window. This is a custom button that is associated with an Avenue script, and is not part of the sample extensions.

  2. Follow the instructions in the series of popup dialogs to select the Pour, Flow Accumulation, and Flow Direction grids. Please take the time to think about what you are doing, and specify the correct grid themes for each of the dialogs! Otherwise, you will get incorrect results.

  3. A new theme will be added, called Gridn where n is the sequential number of new watershed grids generated. Turn the theme on.




    These two large grid zones represent the areas upstream from the selected pour points. Note that the larger watershed goes up to a ridge line on the south and far east, but only up to the next sub-basin on the southeast. Also note that both watersheds are artificially truncated by the analysis extent. If you create "real" watersheds, it will take longer, but you should not use an artificial analysis extent. Watersheds should be allowed to go to the natural ridge line. We used an artificial truncation in order to run through the process faster.

  4. Convert this to a polygon shapefile called watrshed.shp, and add it to the view.


    You have just delineated two watersheds, based on your elevation grid data and the outlet points you chose. If your watersheds are very small, it is because you located your outlet points outside of a high-flow pathway, or you did not fill your original input elevation grid.

 


Automatically delineating watersheds

Compare your method with an automated method.

  1. From the Hydro menu, select Hydrologic Modeling.

  2. For the elevation surface, select Filled Dem_clip. Check all boxes.



  3. After a minute or two you will be asked to specify the minimum watershed size. Enter 50000 (no commas). This means that watersheds will be automatically generated from pour points with an upstream value of 50,000.



  4. Several minutes will pass, and the new watersheds will be displayed.



  5. If you are not satisfied with the number or sizes of these basins, click the No button on the Hydro.dd Watershed dialog.



  6. You will be prompted to enter a different value for minimum watershed size. You can either increase or decrease the value. Enter the value of 100000 (no commas).




  7. If you are satisfied with these, click the Yes button on the Hydro.dd Watershed dialog.




    In addition to the new watershed grid, you will be prompted for the name of the output polygon shapefile. Accept the default watrshed.shp file name. This will take several more minutes.

    These are the watershed zones automatically generated with 100000 as the minimum number of cells. Each watershed is at least 100,000 cells in area.




    After the process completes, open the theme table for the new polygon theme. It will contain several metrics for each watershed, including all the metrics chosen in the check boxes.

  8. Open the theme table for the new polygon theme. Sort descending, based on the Centroidx field. Notice that only 8 of the records have values. These 8 records correspond with the 8 watershed zones. Each field is a specific watershed metric. (Your values may differ from mine).

 

You have just let ArcView automatically generate a series of watersheds. ArcView also creates a polygon theme with metrics calculated for each watershed.


Calculating watershed metrics

Generate a few different grids representing various watershed metrics.

 

  1. Make the Watrshed grid theme active.

 

  1. From the Hydro menu, select Area. This will create a new grid theme.

  2. When the new grid theme is added, make it active (but you do not need to turn the theme on).

  3. Using the Identify tool, click on each of the watersheds, and the area in sq. ft. will be shown in the Identify Results dialog.

 

  1. Add the fdir1 grid theme to the view

  2. Make the Watershed theme active.

  3. From the Hydro menu, select Flow Length by Watershed.

  4. Select the Fdir1 theme as the Flow Direction theme.



  5. Click No when asked to Calculate length to an outlet. This will specify to calculate the maximum length of flow per watershed, rather then length of flow per cell.



  6. When the Maximum Flow Length grid theme is added, turn it on, make it active, and Identify a few cells. This is the calculated maximum length along the flow path for each watershed.

  7. You can generate the full suite of watershed metrics for an existing watershed grid by selecting Hydro > Hydrologic Modeling from the menu. Select the filled DEM grid and the existing watershed grid in the dialog:



    If you use this technique, make sure to look at the attribute table for the watershed theme to see the fields that were created and their values.

 

Feel free to explore the other Hydrological analysis tools. Look at the online documentation (F1)!!!!


Raster to vector conversion

  1. If you use the Hydrologic Modeling tool from the Hydro menu and select Use Existing Watershed, a polygon shapefile will be automatically created, with attributes calculated for the checked metrics.

  2. If you use manual methods of creating watersheds, you will need to use this technique (which you have already done in previously in this exercise).

    1. Make the Watershed theme active.

    2. From the Theme menu, select Convert to Shapefile.

    3. Call the new shapefile wsheds.shp.

 

  1. Make sure you have a Flow Direction and Flow Accumulation grid in your view..

  2. Make the Flow Accumulation theme active.

  3. From the Hydro menu, select Stream Network as Line Shape.

  4. Specify a minimum flow accumulation of 5000. This specifies that stream vector data will be created only for cells with at least 5,000 upstream cells.



  5. Specify Fdir1 as the Flow Direction theme





    After a few moments the new theme, Stream Network Shape - (5000), will be added to the view. The theme is automatically saved in the working directory as rivn.shp, where n is incremented with the number of stream network shapefiles created.

 

  1. Make the Watershed theme active.

  2. Select Hydro > Centroid as Point Shape.

  3. A point shapefile will be created that represents watershed centroids (sometimes called centers of gravity).

 

 


Watershed visualization

  1. Create a new view.

  2. Add a copy of the grid theme Filled Dem_clip from the other view.

  3. Add the Pour_pts point feature theme

  4. Add the line feature themes Contour and Streams from the CD.

  5. Add a copy of the Watrshed.shp polygon feature theme.

  6. Alter its legend so that is is not filled and displayed with a red outline.

  7. Make the Filled Dem_clip theme active, and select Compute Hillshade from the Surface menu.
    Accept the default parameters for the hillshading.



  8. Alter the drawing order and legends so that features are discernible. Other than the artificial truncation, does this look reasonable to you?


Syllabus Schedule Class Meetings Assignments Course Data Internet Search

Current Grades

Contact Us CFR 590 Internet-only section Lab Locations  

 

The University of Washington Spatial Technology, GIS, and Remote Sensing Page is provided by the College of Forest Resources and the College of Ocean and Fisheries Sciences through Unit-Specific UIF. Site administrator: Phil Hurvitz.
Copyright © Phil Hurvitz, 1998-2003