GIS Hydro '98 - WMS
Watershed Modeling System

Engineering Computer Graphics Laboratory, Brigham Young University


Introduction

The Watershed Modeling System (WMS) was developed at the Engineering Computer Graphics Lab (ECGL) in cooperation with US Army Corps of Engineers Waterways Experiment Station (WES) and the Federal Highways Administration. The focus of WMS is to provide a single application which integrates digital terrain models with industry standard runoff models such as HEC-1, TR-20, TR-55, and the National Flood Frequency program (NFF) regional regression equations. WMS can be used to develop hydrologic data from TINs or grids using many of the same techniques described in other sections of this CD, in particular Watershed Characterization. More importantly hydrologic data developed in Arc/INFO, ArcView, or WMS can be directly linked to commonly used hydrologic models. Besides being able to export TINs or grids developed in Arc/Info or ArcView to WMS for further hydrologic data development, vector data representing streams and basin boundaries can also be passed between a GIS and WMS. This is done through three primary shapefiles: a polygon shapefile for basin boundaries, a line shapefile for stream networks, and a point shapefile to identify outlet locations. A series of Avenue scripts, developed by ESRI, can be used with the Spatial Analyst extensions to automatically generate these three shapefiles, including population of attribute fields with important hydrologic parameters. An additional ArcView extension (downloadable from the ECGL web site ) aids in preparing vector data for import into WMS. Specifically this extension performs the following critical steps:

Whether you are using grids, TINs, or vector coverages, these data can then be used in WMS to create a model for any of the hydrologic programs supported by WMS. Data entry for the model, including rainfall, job control, or any other parameters not defined as attributes in the shapefiles, can be completed using WMS's hydrologic modeling interface. WMS can be used to post-process and then export results back to the GIS software.

Figure 1. The Watershed Modeling System imports ArcView shapefiles for use in creating HEC-1, TR-20, TR-55, and other hydrologic models.


WMS

GIS has become established as an excellent tool for data storage and management. With the creation of GRID in Arc/Info and the Spatial Analyst in ArcView, GIS has become more useful for hydrologic data development as well. However, much of this data, both stored and developed in the GIS, remains locked to hydrologic modelers. Even though GIS holds much promise as a tool for performing spatial hydrologic runoff modeling (particularly on a regional basis), much of the modeling performed must be done using industry standard, lumped parameter models such as HEC-1 and TR-20. While much of the input required to run these models can still be developed using GIS, some parameters such as rainfall, job control, and other model-specific parameters can not, and typically are not efficiently entered and stored in the GIS.


Unlocking GIS Data for Use with Hydrologic Models

In order to "unlock" hydrologic data developed/stored in GIS for use in traditional lumped-parameter hydrologic models, a link consisting of three primary shape files has been developed as a joint effort by ESRI and ECGL. The link provides a common gateway to transfer data from a GIS to a hydrologic modeling system such as WMS. These three shapefiles consist of:

In addition to the geometry stored in the shapefiles, any number of hydrologic modeling related attributes may be stored as part of the shapefile. These attributes may be developed using the Spatial Analyst or manually entered.

These three shapefiles can then be imported into any program designed for hydrologic modeling. The combination of outlet points, stream network, and sub-basins will uniquely define the watershed structure, and attributes can be used to set up any hydrologic model for which the application is designed to support.


Linking the GIS Data with Hydrologic Models

WMS supports the processing of GIS data for use in the development of hydrologic models such as HEC-1 and TR-20. This section will present an interface designed to import GIS data into WMS. When the data is imported into WMS, it is automatically linked to each of the hydrologic models supported in WMS.

In WMS, shapefiles can be imported using two different methods. The Import Shapefile Data option provides the facility to specify each shapefile separately and to map the attributes required for modeling. The other option is to import a WMS/ArcView® superfile, which is a collection of ArcView® shapefiles and ASCII grid files. This WMS/ArcView® super file can be created using the ArcView® GIS extension, recently developed by ECGL.

Using WMS Hydrologic Extension for ArcView® GIS - WMSHydro

The hydrologic modeling Avenue scripts developed by ESRI can be used to generate a stream network and basin boundaries from a grid. However, after the basin boundaries and stream network are generated, further editing must be performed before the data is imported into WMS. This editing is facilitated using a seperate Avenue extension developed by ECGL called WMSHydro.

Development of a hydrological model in WMS from shapefiles is a single step procedure when the shapefiles have certain properties. First, the shapefile attribute fields must be set up so they can be mapped to the WMS attribute fields. Second, the streams must ordered from downstream to upstream. Finally, the outlets points must coincide with nodes or vertices on the stream and sub-basin layers. Shapefiles digitized or generated using ESRI's Hydrologic Modeling extension may not necessarily possess these properties. Therefore, the WMS Hydrologic Extension for ArcView® GIS, WMSHydro, was developed to provide a set of scripts to prepare these shapefiles for hydrologic modeling in WMS. Depending on the needs, the appropriate dialog can be opened by selecting each of the choices under the WMSHydro pull down menu. This menu is added to ArcView®'s View menu bar once this extention is loaded.

Shapefiles created from different sources usually have the attributes required for hydrlogic modeling such as area, basin id, etc. but may have different attribute names. Aliases can be assigned to these attributes so that they are automatically mapped in WMS.

Stream order is important for developing a hydrlogic model in WMS. WMSHydro provides the facility to reorder arcs in the stream layer so that the arc directions are consistently ordered from downstream to upstream. The most downstream outlet point must be selected in order to perform this task.

The effects of ordering are described in the above figures, where the upstream and downstream nodes of the streams are displayed using red and blue marker symbols, respectively.

As mentioned earlier, in addition to stream and sub-basin boundary shapefiles, an outlet shapefile is also required. However, these outlet points must coincide with nodes or vertices on the stream and sub-basin layers so that these layers can be tied together at outlet points in WMS. WMSHydro provides the facility to create an outlet layer intersecting a stream and a sub-basin boundary. At the same time, WMSHydro inserts vertices at the same location in those two layers which otherwise could have been a difficult task to perform manually.

Once these shapefiles are ready, these can be exported as a WMS/ArcView® super file. A WMS/ArcView® super file is a collection of coverages and grids recognized by WMS and can be exported and imported from this extension as well as from WMS.

The WMS superfile created from the WMSHydro extension can be read directly into WMS using the Import WMS Superfile option. In addition to the outlet, stream and sub-basin shapefiles, other GIS attribute layers stored as shapefiles or grids can be imported into WMS through this superfile format.

Using the 'Import Shapefile' option in WMS

Besides being able to import a WMS/ArcView® Superfile into WMS, the outlet, stream and basin shapefiles can be specified as separate files and imported into WMS.

As the shapefiles are read by WMS, key words for database item names such as area, slope, curve number etc. are checked against several defined names in order to automatically "map" these variables for use within WMS. If the shapefiles were created using the customized scripts for the ArcView Spatial Analyst (described in more detail below) then they will be created with the proper item names to automatically map in WMS. If the item names to match the pre-defined names then the user can manually map the item names in the database (dbf) file to their corresponding use in WMS using the dialog shown below.

Once the mapping has been defined the shapefiles are read in and converted to a digital and topological representation of the watershed as shown in the next figure.

As mentioned above, any variables read in through the shapefile interface can be mapped to their corresponding values in WMS. As a minimum, basin areas and stream lengths will be defined. Since WMS was designed specifically for hydrologic modeling applications it is not important that all parameters be computed in ArcView prior to exporting the shapefiles for use in WMS. Missing data can be defined inside of WMS and properly formatted for any of the supported models. The hydrologic analysis can then be done in WMS and results sent back through the same three shapefiles for storage/query from ArcView.


Using ESRI's Hydrologic Modeling Extensions for Watershed Data Development

In order to facilitate the development of hydrologic data from grids in ArcView some sample extensions have been created by the ESRI development team. Some of the scripts were included as a sample application with the initial release of Spatial Analyst 1.0. These functions have been combined with several other commands in order to provide a more complete tool for developing hydrologic data in preparation of using industry standard hydrologic models such as HEC-1 and TR-20. The scripts include the following capabilities:

Initially, the following attributes for the three different shapefiles will be exported:

For stream line shapes

For outlet point shapes

For polygon basin shapes

Other attributes for the different shapes will likely be added as the project progresses.

While WMS has been used to show how the resulting shapefiles can be linked to hydrologic models, the format is open and can be processed by any program designed specifically to interface to rainfall/runoff programs.


Hydrologic Models Supported by WMS


Other Tools available in WMS


More Information

More information, and a free demonstration version of WMS can be downloaded from the WMS home page. Pay attention to information on this site for availability and location where the hydrologic modeling extension scripts for the ArcView Spatial Analyst can be downloaded.


These materials may be used for study, research, and education, but please credit the authors and the Engineering Computer Graphics Laboratory, Brigham Young University. All commercial rights reserved. Copyright 1998 Engineering Computer Graphics Laboratory.