Watershed and Stream Network Delineation

GIS in Water Resources, Fall 2010

Prepared by David Tarboton, Utah State University

 

Purpose

The purpose of this exercise is to illustrate digital elevation model based watershed and stream network delineation using the Hydrology tools in the ArcGIS Geoprocessing toolbox.  In this exercise, you will perform drainage analysis on a terrain model for the San Marcos Basin.  The Hydrology tools are used to derive several data sets that collectively describe the drainage patterns of the catchment.  Geoprocessing analysis is performed to recondition the digital elevation model and generate data on flow direction, flow accumulation, stream definition, stream segmentation, and watershed delineation.  These data are then be used to develop a vector representation of catchments and drainage lines from selected points that can then be used in network analysis. This exercise shows how detailed information on the connectivity of the landscape and watersheds can be developed starting from raw digital elevation data, and that this enriched information can be used to compute watershed attributes commonly used in hydrologic and water resources analyses.

Learning objectives

·         Reinforce concepts of spatial reference systems and coordinate transformations.

·         Identify and properly execute the geoprocessing tools involved in DEM reconditioning.

·         Describe and quantitatively interpret the results from DEM reconditioning as a special case of quantitative raster analysis.

·         Construct profiles using 3D Analyst.

·         Create and edit feature classes.

·         Identify and properly execute the sequence of Hydrology tools required to delineate streams, catchments and watersheds from a DEM.

·         Evaluate and interpret drainage area, stream length and stream order properties from Terrain Analysis results.

·         Develop a Geometric Network representation of the stream network from the products of terrain analysis.

·         Use Network Analysis to select connected catchments and determine their properties

Computer and Data Requirements

To carry out this exercise, you need to have a computer which runs ArcGIS 10 and includes the Spatial Analyst and 3D Analyst extensions. The data are provided in the accompanying zip file, Ex4.zip available at http://www.engineering.usu.edu/dtarb/giswr/2010/Ex4.zip.  The data files used in the exercise consist of a DEM grid for the San Marcos Basin in Texas from the National Elevation Dataset and stream and watershed data from the National Hydrography Dataset NHDPlus.  If you want to do similar work in a different location you will need to download this data from these data sources.  URL's for these and other data sources were provided in Lecture 4. 

Data description:

Ex4.zip should be unzipped and saved in a folder where you will do your work.  In this exercise the folder C:\Users\dtarb\Scratch\Ex4 has been used.  The unzipped contents of Ex4.zip are illustrated below:

 

The geodatabase SanMarcos.gdb contains the following feature classes in a feature dataset named Basemap.

 

Watershed is the set of HUC 12 watersheds within the San Marcos 8 digit HUC 12100203 extracted from the watershed boundary dataset in Exercise 2.  Basin is the San Marcos 8 digit HUC 12100203 boundary obtained by dissolving the HUC 12 watersheds.  NHDFlowline is a subset of NHDPlus flowlines that cover the San Marcos Basin and surrounding area.  USGSGage is a set of USGS stream gages within the San Marcos Basin, similar to what was developed in exercise 2. 

There is also a folder smdem_raw and associated files smdem_raw.aux, smdem_raw.rrd and files in the INFO folder that contains the digital elevation model for this region obtained from the National Elevation dataset.  (Remember that in ArcGIS single datasets are often stored in multiple files on the computer and these files should be manipulated using ArcCatalog.  If you move the files using the Windows Explorer you may omit one of them and corrupt the data.) 

The exercise is divided in to the following steps

1.       Data setup

2.       DEM Reconditioning

3.       Terrain Analysis

4.       Network analysis

Data Setup

Raster analyses such as watershed and stream network delineation are best performed in a consistent projected spatial reference system (or projection).  This is because calculation of slope, length and area are involved and these are best done in linear (not geographic) units consistent with the elevation units.  Here we will first project the DEM data that is in geographic coordinates into an appropriate spatial reference to standardize on.  Then we will set the map document data frame to have this spatial reference.  We also project the existing streams (NHD flowlines) into this spatial reference.

1.      Project Raster

Open ArcMap.  Click on the  icon to add data. In the dialog box, navigate to the location of the data; select the raster file smdem_raw containing the DEM for San Marcos and click on the “Add” button. The added file will then be listed in the Arc Map Table of contents. When a new ArcMap document is created, it does not have any coordinate system, and its coordinate system is defined by the first dataset added to the map document. Look at the bottom-right corner of the document to see the geographic coordinates. This is because the DEM is in geographic coordinates. Therefore, the first step is projecting the data to a coordinate system.  Click on the ArcToolbox button  on the Standard toolbar to display ArcToolbox. In ArcToolbox, select Data Management ToolsàProjections and TransformationsàRasteràProject Raster as shown below:

 

Double click on Project Raster to get the following form:

The input raster should be set to smdem_raw already added to ArcMap.  Name the output raster as smdem, (in the SanMarcos.gdb) and select the output coordinate system by clicking at the button next to the input text-box to get the following form:

 

Then click on SelectàProjected Coordinate SystemàState Systems and click on NAD 1983 Texas Centric Mapping System Albers.prj. Click Add, and press OK.  Adjust the resampling technique to CUBIC and the output cell size to 30 m.  (This NED data is at 1 arc second spacing which is close to 30 m, so 30 m is an appropriate choice.  In Exercise 3 we used 100 m to speed things up, but for this exercise 30 m will be used.)  CUBIC refers to the cubic convolution method that determines the new cell value by fitting a smooth curve through the surrounding points.  This works best for a continuous surface like topography at limiting artificial "striping" that can appear in a shaded relief map with the other methods.  Click OK to invoke the tool. After the process is complete, the projected DEM, smdem, is added to ArcMap.

2.      Set data frame spatial reference

You can see that the ArcMap document is still showing geographic coordinates (bottom-right corner). Right click on the smdem layer in the table of contents and in Layer Properties select the Source tab. 

If you scroll down you will see that the Spatial Reference of smdem is NAD_1983_Texas-Centric_Mapping_System_Albers.  This confirms that the data has been interpolated into projected coordinates.  This data is being displayed in geographic coordinates using ArcGIS' project on the fly display capability.  Close Layer Properties and right click on the Layer symbol at the top left and select Properties. 

 

This set of properties pertains to the Data Frame.  A map document can hold multiple Data Frames.  The default data frame created when data is first loaded is called Layers.  Click on the Coordinate System tab and you will see under Current coordinate system the coordinate system that this Data Frame is using to display the data (GCS_North_American_1983).  In the Select a coordinate system box you can change the coordinate system being used for display.  This does not change the data, just a property of the Data Frame used for display.  Expand the Layers folder and smdem folder and click on the NAD_1983_Texas_Centric_Mapping_System_Albers under smdem.  Then click OK.  This switches the on the fly projection of the display to this projection. 

You will notice after doing this that the display appears slightly skewed; this is because the geographic coordinates bounding dimensions of our data are skewed in projected coordinates.  Note that at the bottom right the map display is still using decimal degree units.  To see X and Y coordinates in meters re-open the Data Frame Properties (by right clicking on Layers àProperties).  Click on the General tab and change the display units from Decimal Degrees to meters.  Click OK

Now you should see meters at the bottom right.  We will standardize on this NAD_1983_Texas_Centric_Mapping_System_Albers spatial reference that smdem was projected to for this exercise.  Terrain analysis is better done in a projected coordinate system because it involves the calculation of slope and length information that is best to have in units consistent with the elevation units. 

3.      Project existing streams

Feature datasets are used in ArcGIS to hold feature classes that all have the same projection.  Let's create a feature dataset for all our vector (feature class/shape) data in the geodatabase SanMarcos.gdb.  Click on Catalog Window  on the standard toolbar to open the Catalog Window within ArcMap.  Right click on SanMarcos.gdb and select New à Feature Dataset. 

Specify name BaseMapAlbers.  Click Next.  At the Choose the coordinate system for XY coordinates prompt click on Import and navigate to smdem.  Click Add. Notice that the coordinate system Name is now set to NAD_1983_Texas_Centric_Mapping_System_Albers.  Click Next.

At the Choose the coordinate system for Z coordinates prompt leave it at <None> and click Next.  Click Finish leaving XY Tolerance at the defaults.  An empty Feature Dataset "BaseMapAlbers" should appear in your Catalog Window.  Expand the Basemap Feature Dataset in the Catalog Window and right click on NHDFlowline àExport à To Geodatabase (single)

This opens a Feature Class to Feature Class tool.  Set the inputs as follows (Output Location BaseMapAlbers, Output Feature Class Flowline):

Click OK.  The FlowLine dataset is  added to the BaseMapAlbers feature class.  During this process it is automatically projected to the coordinate system of the destination Feature Dataset as all feature classes within a Feature Dataset have the same coordinate system.  This is often a quick way to project and organize data. 

Remove the layers Smdem_raw (and NHDFlowline if you added it) from the ArcMap document.  From now on we will work with projected data and do not want to inadvertently use the raw data that does not have the correct projection. 

Click on File Map Document Properties. At the dialog that appears click Store relative pathnames to data sources.

 

When the map document is saved, this stores the location of datasets, which are not actually part of the map document as relative paths so that if you move the map document and folder with datasets to another computer retaining the same relative location in your folder hierarchy, the map table of content entries will be preserved, and data sets found and displayed. Save and close the ArcMap document. You are now ready for terrain analysis! 

DEM Reconditioning

DEM reconditioning is a process of adjusting the DEM so that elevations along streams are more consistent with and direct drainage towards the vector information on stream position, that in this case was obtained from NHDPlus.  DEM reconditioning is only suggested when the vector stream information is more reliable than the raster DEM information.  This may not be the case here, but reconditioning is done nevertheless to illustrate the process.  DEM reconditioning as done here involves a sequence of ArcGIS geoprocessing functions.

1.      Feature to Raster.

Click on the  search icon on the standard toolbar to open the ArcGIS search window.  Enter feature to raster and click on the search magnifying glass.  This is another way to find tools if you do not know which toolbox they are in.  You have to however know something about their name or a word used in describing their functionality.

Click on the Feature to Raster tool.  Select FlowLine as the Input features.  Use Field COMID (all we need here is some unique number).  For output raster designate the name FlowLineRaster in the SanMarcos.gdb.  Click on the Environments button. 

In Environment Settings expand Output Coordinates and select Same as Layer "smdem".  Expand Processing Extent and select Extent same as "smdem" and Snap Raster as "smdem".  Click OK

Notice that back on the Feature to Raster tool the output cell size now inherits the value 30 from the snap raster.  Click OK on the Feature to Raster tool.

The result is a flowLineRaster that represents the flowlines as a raster with value corresponding to their COMID.  The particular field used was somewhat arbitrary as we really just need a value by which to identify stream grid cells.

2.      Threshold using Greater Than to obtain stream raster.

To identify whether a grid cell is part of a stream or not, we use the greater than function to obtain a binary (0.1) raster of stream cells.  Locate the Greater Than tool (using the search window) and enter the following input, click OK. 

The result is a raster with value 1 for stream cells and no data elsewhere. 

To use in calculations below, we need 0's not no data off the streams, so let's reclassify this.  Locate the Reclassify tool (using the search window) and enter the following input, click OK.

The result is a raster where NoData values have been replaced by 0's. 

3.      Distance to streams

Search on distance and open the Euclidean Distance tool.  Set Flowline as the input feature and designate distance as the output raster in the SanMarcos.gdb.

Click on Environments and as before set Output Coordinates same as smdem and Processing Extent same as smdem and Snap Raster to smdem.

The result is a grid giving distances to the streams that looks a bit like the inside of an intestine (sorry!). 

4.      AGREE Reconditioning with Map Algebra.

The distance and FlowLineReclas grids contain the information required to do an AGREE like (see Lecture 9 slide 35 and http://www.ce.utexas.edu/prof/maidment/GISHYDRO/ferdi/research/agree/agree.html) reconditioning of the DEM to burn in the streams.  Open the Raster Calculator on Map Algebra and construct the following expression

The output is saved in a raster named smrecon (San Marcos reconditioned) in the SanMarcos.gdb.  The Map algebra expression is interpreted as follows

5.      3D Analyst

Let's use Raster calculator and 3D Analyst to see what this has produced.

Use raster Calculator to evaluate the following expression

The worm like result shows how the DEM has been altered to reduce values along the streams.

Select Customize à Extensions

Select the 3D analyst extension.

Select Customize à Toolbars à 3D Analyst to display the 3D Analyst toolbar

Set the target layer in the toolbar to smrecon and click on the interpolate line button .  Draw a line on the map across a stream.  Then click on the Create Profile Graph button  to obtain a profile graph. 

Repeat the procedure with target layers "smdem" and "diff".  It seems that you have to redraw the line each time, but with a bit of fiddling you can illustrate the effect of reconditioning on the DEM.

 

To turn in: 

1.       Screen captures that illustrate the effect of AGREE DEM Reconditioning.  Show the location where you made a cross section as well as the DEM cross sections with and without reconditioning.

Open the attribute table of FlowLineReclas and find the number of grid cells that were mapped as stream cells.  Given that the size of each grid cell is 30 m and that the channel crosses it either aligned with the grid or diagonally, the length of channel represented by each grid cell is between 30 and , for an average of say 36 m.  Use this and the number of grid cells to estimate the length of channels in the area defined by the smdem grid.  Use the total number of grid cells, and grid cell area to estimate the total area and take the ratio to estimate the drainage density (Length of Channels/Total Area).

To turn in: 

2.       Number of stream grid cells in FlowLineReclas and estimates of channel length and drainage density.

Open the Layer Properties of the diff raster and find the average amount of "earth" removed by the reconditioning process.  Multiply this by the total area to get the total volume of "earth" removed.  The cross section of "earth" removed was a swath 1000 m wide along the streams with triangular cross section (illustrated in a profile graph) going down to 10 m and a spike 30 m wide going down to 20 m.  Calculate the area of this cross section and multiply it by the length of channels to get another estimate of the volume of "earth" removed by this reconditioning. 

To turn in: 

3.       Volumes of earth removed estimated from (a) layer properties of diff and (b) from estimates of channel length and cross section area.  Comment on the differences. 

Terrain Analysis

1.      Fill

This function fills the sinks in a grid. If cells with higher elevation surround a cell, the water is trapped in that cell and cannot flow. The Fill function modifies the elevation value to eliminate these problems.

Select Spatial Analyst Tools à Hydrology à Fill.  Set the input surface raster as smrecon and output surface raster as fel in SanMarcos.gdb. 

Press OK. Upon successful completion of the process, the “fil” layer is added to the map. This process takes a few minutes.

2.      Flow Direction

This function computes the flow direction for a given grid.  The values in the cells of the flow direction grid indicate the direction of the steepest descent from that cell.

Select Spatial Analyst Tools à Hydrology à Flow Direction.

Set the inputs as follows, with output "fdr". 

Press OK. Upon successful completion of the process, the flow direction grid “fdr” is added to the map.

To turn in: 

4.       Make a screen capture of the attribute table of fdr and give an interpretation for the values in the Value field using a sketch.

3.      Flow Accumulation

This function computes the flow accumulation grid that contains the accumulated number of cells upstream of a cell, for each cell in the input grid.

Select Spatial Analyst Tools à Hydrology à Flow Accumulation. 

Set the inputs as follows

Press OK. Upon successful completion of the process, the flow accumulation grid “fac” is added to the map. This process may take several minutes for a large grid!  Adjust the symbology of the Flow Accumulation layer "fac" to a classified scale with multiplicatively increasing breaks that you type in, to illustrate the increase of flow accumulation as one descends into the grid flow network.

 

After applying this layer symbology you may right click on the "fac" layer and Save As Layer File

The saved Layer File may be imported to retrieve the symbology definition and apply it to other data.

Add the SanMarcos Basin feature class from the BaseMap feature dataset in the SanMarcos.gdb geodatabase.  This shows the outline of the San Marcos basin.  Change the symbology so that this is displayed as hollow and zoom in on the outlet in the South West corner.  Use the identify tool to determine the value of "fac" at the point where the main stream exits the area defined by the San Marcos Basin polygon.  This location is indicated in the following figure.

The value obtained represents the drainage area in number of 30 x 30 m grid cells.  Calculate the drainage area in km2. 

Also examine the edges of the San Marcos Basin as represented by the Basin feature class.  Note the consistency between this basin boundary and streams as represented by flow accumulation.  Notice also how, apart from cutting off a number of meanders, there is generally good agreement between the FlowLine feature class and flow accumulation grid.  This is a result of the DEM reconditioning that was performed.  

To turn in:          

5.       Report the drainage area of the San Marcos basin in both number of 30 m grid cells and km2 as estimated by flow accumulation. 

Add the SanMarcos Watershed feature class from the BaseMap feature dataset in the SanMarcos.gdb geodatabase.  This shows the outline of the HUC 12 subwatersheds in the San Marcos basin.  Change the symbology so that this is displayed as hollow and zoom in on the outlet in the South West corner.  Use the identify tool to find the HU_12_NAME of the subwatershed right at the outlet of the San Marcos Basin.

Use the identify tool to determine the value of "fac" at the point where the main stream enters and exits the area defined by this most downstream subwatershed.  Subtract the entering fac value from the exiting fac value to determine the area of this subwaterdhed.  Compare your result to the area reported in the ACRES attribute of this feature.  The Shape_Area attribute of the Watershed feature class is not meaningful to interpret because it is in geographic coordinates.  To have ArcMap compute a value to compare this needs to be projected to the coordinate system we are using.  Select the Projections and Transformations à Feature à Project tool.  Set the inputs as follows and click OK. 

Now examine the Shape_Area of the downstream subwatershed and compare it to what you obtained from flow accumulation.  [Note that, for some reason when I executed the above the output was not stored in the BaseMapAlbers feature dataset and was not added to the map automatically.  Also it should be possible to achieve the same result using Data àExport in to the BaseMapAlbers feature data set, but when I did this the Shape Area was not properly computed.  Perhaps there is a bug!]

To turn in: 

6.       Report the name of the most downstream HUC 12 subwatershed in the San Marcos Basin.  Report the area of the most downstream HUC 12 subwatershed determined from flow accumulation, from the ACRES attribute and from Shape_Area.  Convert these area values to consistent units.  Comment on any differences.

4.      Isolating our Watershed

Rather than working with the whole grid, we now want to focus only on the area of the San Marcos Watershed upstream of where flow leaves the Basin feature class.  Lets define an outlet point there to help us.

Open Catalog and right click on SanMarcos.gdb\BaseMapAlbers à New à Feature Class

Set the Name as Outlet and Type as Point Features.  Click Next.

Leave the coordinate system as default (inheriting from the Feature Dataset it is going in to) and click Next.  Click Finish at the last screen without changing any of the fields.

Now let's use the Editor to create an outlet point in this feature class.  Click on the Editor Toolbar button  on the standard toolbar to activate the Editor toolbar

Click on Editor à Start Editing.  Click Continue at the warning about some of the layers.  Zoom right in on the outlet at the bottom right where flow accumulation exits the area.  Make sure that the outlet layer is turned on so that it appears in the Create Features list.  Using the Create Features button on the Editor Toolbar with Outlet clicked carefully place a point at the desired outlet location

Click Editor à Stop Editing.  Respond Yes to the Save Edits prompt.

You should now have a new outlet point feature at your designated outlet.

Select Spatial Analyst Tools à Hydrology à Watershed.  Set the inputs as follows and click OK.

 

The result should be a Watershed grid that has the value 1 over the area upstream from the outlet point as evaluated from the flow direction field.

5.      Stream Definition

Let's define streams based on a flow accumulation threshold within this watershed. 

Select Spatial Analyst Tools à Map Algebra à Raster Calculator and enter the following expression, using the name Str for the output raster.

The result is a raster representing the streams delineated over our watershed.

6.      Stream Links

This function creates a grid of stream links (or segments) that have a unique identification.  Either a link may be a head link, or it may be defined as a link between two junctions. All the cells in a particular link have the same grid code that is specific to that link.

Select Spatial Analyst Tools à Hydrology à Stream Link.  Set the inputs as follows and click OK.

The result is a grid with unique values for each stream segment or link.  Symbolize StrLnk with unique values so you can see how each link has a separate value.

7.      Catchments

The Watershed function also provides the capability to delineate catchments upstream of discrete links in the stream network.

Select Spatial Analyst Tools à Hydrology à Watershed.  Set the inputs as follows.  Notice that the Input raster pour point data is in this case the StrLnk grid.  Click OK.

The result is a Catchments grid where the subcatchment area draining directly to each link is assigned a unique value the same as the link it drains to.  This allows a relational association between lines in the StrLnk grid and Area's in the Catchments grid.  Symbolize the Catchments grid with unique values so you can see how each catchment has a separate value.  

8.      Conversion to Vector

Let's convert the raster representation of streams derived from the DEM to a vector representation. 

Select Spatial Analyst Tools à Hydrology à Stream to Feature.  Set the inputs as follows.  Note that I put the output in the BaseMapAlbers feature dataset.

Note here that we uncheck the Simplify polylines option.  The simplification can cause streams to "cut corners" that will result in errors when they are later on matched up with values an underlying stream order grid during the process of determining stream order. 

The result is a linear feature class "DrainageLine" that has a unique identifier associated with each link.

Select Conversion Tools à From Raster à Raster to Polygon.  Set the inputs as follows

The result is a Polygon Feature Class of the catchments draining to each link.  The feature classes DrainageLine and CatchPoly represent the connectivity of flow in this watershed in vector form and will be used later for some Network Analysis, that is enabled by having this data in vector form. 

To turn in: 

7.       Describe (with simple illustrations) the relationship between StrLnk, DrainageLine, Catchments and CatchPoly attribute and grid values.  What is the unique identifier in each that allows them to be relationally associated?

9.      Strahler Stream Order

Run Spatial Analyst Tools à Hydrology à Stream Order with inputs as follows. 

The result is a Raster StrahlerOrder that holds Strahler Order values for each grid cell.  Let's now associate these with the streams represented by DrainageLine.

Locate the Zonal Statistics as Table (Spatial Analyst) tool and run it with inputs as follows

Grid_code was chosen as the Zone field because there is a unique grid_code for each DrainageLine link. The result is a Table "OrderTable".  Open the DrainageLine attribute table.  Select Table Options à Add Field.  Specify the name StrahlerOrder and leave other properties at their default.  (Strahler Orders are small integer numbers that should fit in a Short Integer data type)

 

Select Table Options à Joins and Relates à Join, then specify the Join data as follows

Respond No to the prompt about indexing. 

The DrainageLine table now displays many more columns because it has included all the columns from OrderTable.  Which of these contains the Strahler Stream order that we need.  It may initially be puzzling as to why the MIN and MAX are different, because each link is supposed to have a single Strahler Order.  However, when you recognize that a link extends at its junction into the grid cell represented by the downstream link, the reason becomes apparent.  Given this it seems best to select the MIN field from OrderTable to assign values for StrahlerOrder.  If you appear to be getting unexpected results, check your DrainageLine polygon.  If at step 8 you forgot to uncheck the simplify polylines setting, the simplification can result in this process picking up some unexpected stream orders.

Right Click on the StrahlerOrder field header and select Field Calculator, then double click on the OrderTable.MIN field so that the Field Calculator displays as follows and click OK. 

 

Notice that the StrahlerOrder field is now populated with the minimum OrderTable.MIN values.  Remove all Joins from the DrainageLine table. 

Symbolize the DrainageLine feature class using Strahler Stream Order for color and line width.

Use Options à Select by attributes and Statistics in the DrainageLine table to obtain the number of stream links and total length of streams of each order.  Use a similar approach applying joins to the CatchPoly table to determine the stream order of the stream associated with each catchment polygon.  Use Options à Select by attributes and Statistics to obtain the total area of catchments draining directly to streams of each order.

To turn in: 

8.       A table giving the number of stream links, total stream length and total catchment area draining directly to streams of each order.

9.       A layout showing the stream network and catchments attractively symbolized with scale, title and legend.  The symbology should depict the stream order for each stream. 

10. Stream Gauge Subwatersheds

It is often necessary to delineate watersheds draining to specific monitoring points on the stream network, such as stream gages.  Let's do this.  Add the USGSGage feature class from the BaseMap feature dataset and zoom in close to one of the gages.  You will see that although close, the gages do not lie exactly on the streams.  Use Data à Export Data to copy the USGSGage features into a Gages feature class in BaseMapAlbers. 

 

This has the result of projecting to the NAD_1983_Texas_Centric_Mapping_System_Albers coordinate system. 

Use Spatial Analyst Tools à Hydrology à Snap Pour Point with the following input

This results in a raster of pour points close to each gage but on the stream as defined by flow accumulation.

Use Spatial Analyst Tools à Hydrology à Watershed with the following input

This results in subwatersheds delineated to each stream gage.  These may be used with zonal functions to evaluate properties of the subwatersheds draining to these gauges. 

To turn in: 

10.   Indicate the field in the gages table that is associated with values in the wshedG.  Give the area in number of grid cells and km2 of each gauge subwatershed.  Add these as appropriate to give the total area draining to each gauge and compare to the DA_SQ_MILE values from the USGS for these gauges.

Network Analysis

Some of the real power of GIS comes through its use for Network Analysis.  A Geometric Network is an ArcGIS data structure that facilitates the identification of upstream and downstream connectivity.  Here we step through the process of creating a geometric network from the vector stream network representation obtained above, and then use it to determine some simple aggregate information.

Locate the Feature Vertices to Points tool (using the search window) and run it with the following input.

This creates vertices at each "dangling" end of the stream network.  This was done so as to be able to identify the vertex that is the outlet to set as a sink in the Geometric Network creation procedure, so that flow direction can be determined.

Zoom in on the bottom right and select the vertex that is right at the outlet.  Use the Select Features tool on the Tools toolbar

Right click on DrainageLineSourceSink à Data à Export Data and save the selected point as OutletSink.

Now open the Catalog window and right click on BaseMapAlbers à New Geometric Network

Click Next on the New Geometric Network screen.  Enter the name SanMarcosNet, then click Next.

Select the features DrainageLine and OutletSink.  These will be used to create a Geometric Network. Click Next. 

At the prompt to Select roles for the network feature class switch the role under Sources and Sinks for OutletSink to Yes.  This will be used as a Sink for the network.  This is a location that receives flow.  Click Next.

Do not add any weights at the prompt about weights, just click Next.  Click Finish at the summary prompt.  The result is a Geometric Network SanMarcosNet that can be used to perform network operations

Select Customize à Tools à Utility Network Analyst  from the main menu to activate the Utility Networ Analyst toolbar

Click on Flow à Display Arrows on the Utility Network Toolbar

The result is a set of black dots on each network link.  These indicate that flow direction for the network is not assigned. 

To assign network flow direction the OutletSink needs to have a property called AncillaryRole set to be the encoding for Sink.

Open the Editor toolbar and select Start Editing (Click Continue at the warning).  Use the Editor Edit Tool to select the point at the outlet in the OutletSink Feature Class for editing.

Click on the Attributes button on the Editor Toolbar to open the attributes display panel.

The panel should show that the AncillaryRole for this point is "None".

Open the attribute table for OutletSink and edit the encoding for the Field AncillaryRole from 0 to 2.

When you make this change you should see the Ancillary Role designation switch from None to Sink. 

Click on the Set Flow Direction Tool on the Utility Network Analysts toolbar.

You should see the black dots switch to arrows indicating that Flow in the network is now set towards the designated Sink at the outlet.  This network is now ready for Analysis.  Stop Editing, saving edits.

Zoom to the vicinity of one of the USGS stream gauges and place an edge flag near the gauge using the Utility Network Analyst Add Edge Flag Tool.

Set the Trace Task to Trace Upstream and press Solve.

The result is a highlighting of the link that has the edge flag and all links upstream.

Select Analysis à Options

Switch the Results format to Selection.  Select Analysis Clear Results and run the trace again.

 

Now the upstream features are selected.  Open the Drainage Line feature class attribute table and show selected records

Right click on column header Shape_Length à Statistics

 

Record the total length and number of stream links upstream of each USGS gauge.  Note that there is a small error in these results due to the gauge being part of the way along the flagged link which is included in the calculations.  The link could be split to make this analysis more precise but that will not be done here (it would add another 5 pages and few hours to this already long assignment).  Switch the Trace Task to Trace Downstream and press Solve again.  Notice how the selected stream links switch to those downstream from the flag.  Determine the total length of these links as an estimate of the distance along the rivers from each gauge to the downstream outlet.  Join the CatchPoly attribute table to the DrainageLine table.  This provides access to the area draining directly to each stream link.  Evaluate the total area upstream of each using Shape_Area à Statistics.  You can also, by placing a flag at an upstream link determine the flow path (and its length) from any distant link to the outlet.  Evaluate the length of the longest flow path by choosing a link that appears to have the longest flow path (a bit of trial and error may be necessary).  Prepare a layout that illustrates the longest flow path in the San Marcos watershed.

To turn in: 

11.   A table giving for each USGS gauge the number of upstream stream links, the total length of upstream stream links, the total upstream area, drainage density (total length/total area), number of downstream links along path to outlet, distance to outlet along the streams. 

12.   A layout illustrating the longest flow path in the San Marcos watershed and giving the length in km.

OK.  You are done!

Summary of Items to turn in.

1.       Screen captures that illustrate the effect of AGREE DEM Reconditioning.  Show the location where you made a cross section as well as the DEM cross sections with and without reconditioning.

 

2.       Number of stream grid cells in FlowLineReclas and estimates of channel length and drainage density.

 

3.       Volumes of earth removed estimated from (a) layer properties of diff and (b) from estimates of channel length and cross section area.  Comment on the differences. 

 

4.       Make a screen capture of the attribute table of fdr and give an interpretation for the values in the Value field using a sketch.

 

5.       Report the drainage area of the San Marcos basin in both number of 30 m grid cells and km2 as estimated by flow accumulation. 

 

6.       Report the name of the most downstream HUC 12 subwatershed in the San Marcos Basin.  Report the area of the most downstream HUC 12 subwatershed determined from flow accumulation, from the ACRES attribute and from Shape_Area.  Convert these area values to consistent units.  Comment on any differences.

 

7.       Describe (with simple illustrations) the relationship between StrLnk, DrainageLine, Catchments and CatchPoly attribute and grid values.  What is the unique identifier in each that allows them to be relationally associated?

 

8.       A table giving the number of stream links, total stream length and total catchment area draining directly to streams of each order.

 

9.       A layout showing the stream network and catchments attractively symbolized with scale, title and legend.  The symbology should depict the stream order for each stream. 

 

10.   Indicate the field in the gages table that is associated with values in the wshedG.  Give the area in number of grid cells and km2 of each gauge subwatershed.  Add these as appropriate to give the total area draining to each gauge and compare to the DA_SQ_MILE values from the USGS for these gauges.

 

11.   A table giving for each USGS gauge the number of upstream stream links, the total length of upstream stream links, the total upstream area, drainage density (total length/total area), number of downstream links along path to outlet, distance to outlet along the streams. 

 

12.   A layout illustrating the longest flow path in the San Marcos watershed and giving the length in km.