Tutorials Vol 1
Tutorials Vol 1
Tutorials Volume 1
WMS BASICS
The software WMS is a product of the Aquaveo, LLC. For more information
about this software and related products, contact Aquaveo at:
Aquaveo
3210 N. Canyon Road
Suite 300
Provo, Utah 84604
Tel.: (801) 691-5528
e-mail: [email protected]
WWW: http://www.aquaveo.com/
For technical support, contact Aquaveos tech support number at (801) 6915530 (Monday-Friday, 8am-5pm Mountain Time)
TABLE OF CONTENTS
LOADING DEMS, CONTOUR OPTIONS, IMAGES, AND COORDINATE SYSTEM ................ 1-1
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
CREATING FEATURE OBJECTS AND MAPPING THEIR ATTRIBUTES TO THE 2D GRID 3-1
3.1
3.2
3.3
3.4
3.5
CHAPTER
1.1 Introduction
We will learn the basic layout of WMS and get acquainted with the interface.
The left most portion of the WMS window is called Project Explorer, the
central part is the display window, and the right part is the Properties window.
The properties window changes based on the selected item.
in the menu
1-3
grid and initializing your GSSHA model, you should save your project
as a GSSHA project file (with a .prj extension).
8. You can control which objects are displayed by checking and unchecking the data elements in the Project Explorer window. Set the
style, color, and size of elements drawn using the Display Options
Contour Options
, and other macros.
9. Select File | Open
/BaseProj.wms
on the
12. In the Display Options dialog box enter 2.0 for Z magnification. You
can also access the DEM contour options from the display options by
selecting the DEM Data object in the upper left corner of the Display
Options window. Click the options button next to DEM Contours.
Make sure the DEM Contour Method is set to Color Fill and click OK
twice.
1.3 Images
Images are an important part of projects developed using WMS. An image is
comprised of a number of pixels (picture elements), each with its own color.
The resolution, or size, of the pixels determines the area and detail represented
in the image. Images may be used in WMS to derive locations for features such
as roads, streams, confluences, land use, soils and so forth. Images also
provide a base map for your project.
In order to make use of images they must be georeferenced. Georeferencing an
image defines appropriate x and y coordinates so that it can be spatially
overlaid with other data. Because images are commonly used in Geographic
Information System (GIS) programs like WMS, data developers often store the
georeferencing information as either part of the image file (a geotiff file for
example), or in a separate file commonly referred to as a world file.
In this section we will experiment with JPG and TIFF image files. We will also
see how an image without spatial information can be georeferenced.
1.4.1 Scales
In this section we will see how the scale of an image affects the display. We
will use some of the images for Provo, Utah.
1. Select File|New or click on macro icon
WMS.
1-5
Note: These are the topographic maps of the Provo, UT area. The three
images are of different scales (1:24000, 1:100000 and 1:250000
respectively).
4. Once these files are open, you can see them listed in the project
explorer (see the following figure).
5. Turn the display of the images on and off by checking them on and off
in the project explorer. Leave them all on when you are done
experimenting.
6. Select the Zoom Tool
and draw a rectangle over the image to
zoom into the area of your preference.
Zooming Tips: With the zoom in tool
selected, if you press and hold
the Shift key in the keyboard, the zoom in tool changes to
zoom out tool
You can also use the scroll wheel of your mouse to zoom
in and out with any tool or module selected.
7. Zoom into the same location in the three different images and see the
difference in resolution, area covered by the images, details captured
etc.
map
of
Provo
area
obtained
from
Terraserver
(http://www.terraserver.com/). This image is already georeferenced.
Many of the tools in WMS depend on your currently defined coordinate
system. One such feature that uses your current coordinate system (also
called a projection) is the get data tool. Before using the get data tool, you
must have your current projection defined so WMS can determine the
latitude/longitude coordinates of your required data.
2. Select Edit | Current Coordinates to set your current coordinates
3. Select the Global Projection option
4. Select Set Projection
5. Set Projection to UTM, Datum to NAD 83, Planar Units to Meters, and
Zone to 12 (114W - 108W Northern Hemisphere)
6. Select OK
7. Set the vertical projection to Local and the vertical units to Meters
8. Select OK
9. Select the Get data tool
WMS main window.
10. Draw a rectangle with the mouse pointer around the jpg image that
you opened previously. This will open the Data Service options dialog.
Select the Terraserver aerial photo option as shown in the following
figure.
1-7
1.6
Registering Images
Sometimes you will not be able to obtain a geotiff image or an image with a
world file. In this case, you can read a background image from common image
sources such as scanned paper maps, Google Maps, or Google Earth and georeference the image manually. To do this, you need to know the X and Y
coordinates of three points on the image. These coordinates can be in a
projected or geographic (latitude-longitude) system. Before you scan your
paper image, or download an image from the Internet, you should mark the
three points you have selected so you can easily find the points on the image
when you register the image in WMS.
4. Enter Park City, UT in the search box and click Search Maps. This will
zoom into the area where our watershed is located.
1-9
Point 2
Point 1
Point 3
6. You may zoom in more to have a higher resolution image but make
sure that all the three markers are within the visible extent.
7. Now press the Print Screen key on the keyboard. Open the standard
Microsoft Paint program from the Start menu on your computer and
paste the image into Paint. You may want to crop only the portion of
the image you need using the Paint program by selecting the area of the
image you are interested in, selecting Edit | Copy, selecting File | New,
and then selecting Edit | Paste.
8. Once done, save the image as C:\Training\Personal\Images\
ParkCity.jpg.
9. If you have trouble downloading the image, there is one already
downloaded in C:\Training\Images\ ParkCity.jpg.
place the numbered plus signs over the tip of the place markers and enter the
corresponding coordinates in the fields below to register the image.
4. Use the Point Selection tool
to drag each + symbol over the
closest lat/lon coordinates as shown in the following figure. You may
wish to place the symbols close and then zoom
1-11
The data is not showing up because the coordinate system of the delineated
watershed does not match with the coordinates of the image you just registered.
Do the steps in the following section to learn how to convert the coordinate
system of the image so the image overlays the watershed.
5. Select OK
6. Set the Vertical System projection to NAVD 88(US) and units to
Meters
7. Toggle on the Specify check box in the Project Projection in the
Reproject Object dialog
8. Select the Global Projection radio button
9. Set Projection to UTM, Datum to NAD 83, Planar Units to Meters, and
Zone to 12 (114W - 108 W Northern Hemisphere)
10. Select OK
11. Set the Vertical System projection to NAVD 88(US) and units to
Meters
12. Select OK
There might be some distortion in the image as it is converted from geographic
to UTM because a degree of longitude has a shorter distance the farther north
you are, but this is normal. Any measurements taken or data created from the
image will have XY distance units of meters.
1-13
Note: As discussed above, if the image and the world file are at different
locations, if they have different names, or if there is no world file, opening an
image will display the Image Registration dialog.
If you see the Image Registration dialog but you already have a world file at a
different location or with a different name, click the Import World File button at
the bottom of the Registration dialog. Browse to and open the world file and
click OK. The image will show up as a georeferenced image.
1. Start a web browser and type the following link into the address bar:
http://www.xmswiki.com/xms/GSDA:GSDA. This will take
you to the Geo-Spatial Data Acquisition Home page.
2. Under Surface Characteristics, select Land Use.
3. Select the WebGIS link.
5. For this exercise, you will get the land use data for Omaha. In the US
map, select Nebraska.
6. Click on List Counties Alphabetically
1-15
24. This shapefile is in the GIS module of WMS. To use this shapefile for
hydrologic and hydraulic calculations, you need to convert it to data in
the map module of WMS. You will do this in a later section.
25. Do not close WMS, we will keep working with this data in the
following section.
1-17
6. Click OK.
7. Right click on the soils shape file under GIS Layers and open the
attribute table again. This time you will see that several soils
properties have been added as attributes.
2. Select the coverage type to be Soil Type and click OK. This will create
a new soil type coverage in the project explorer. Note that WMS
creates a Drainage coverage automatically as soon as WMS is opened.
When you create a GSSHA grid, the drainage coverage is converted to
a GSSHA coverage.
3. Click on the new soil type coverage in the Explorer window to make it
active.
4. Click on the soilmu_a_ne055.shp (under GIS layers) to make it active
and change to the GIS module as we are going to map the data from
the soil shapefile to the soil type coverage.
5. Turn off the check box next to the omaha.shp shapefile you read in a
previous section. This is the land use shapefile and you do not want
the data in this shapefile included in your soil type coverage.
6. Click on the Select shapes tool
and drag a rectangle around a
watershed area you are interested in to select all land use polygons that
overlap your watershed. Do not worry if you select polygons that are
outside the watershed boundary, WMS will use the watershed
boundary to clip the land use polygons.
7. Select Mapping | Shapes > Feature objects, click Next and make
sure that the fields are mapped properly. For example, the TEXTURE
field should be mapped to Texture, HYDGRP should be mapped to
SCS soil type, and so on. Click Next and click Finish.
8. The selected soil polygons are now converted to a coverage in the
WMS map module and saved in the WMS map file format. You no
longer need the GIS data once it is mapped to a coverage. You may
delete the soil shape file under GIS layers (Right click on
soilmu_a_ne055.shp and select delete).
CHAPTER
6. Now, select the Define button to define the project bounds. This opens
a map locator window and lets you navigate to your project area.
7. Maximize the Virtual Earth Map Locator window and select Map
Options | Show Locator Tool. This will show a search field in the
window.
8. In Where field, enter Glen Carbon, IL and click on Search button.
9. The map will show Glen Carbon Crossing approximately at the center
of the window. Zoom in little more. Compare your display with the
following figure.
2-3 REFER
10. Click OK. WMS will now extract the bounding coordinates for the
extent of the display of this map. You can see the coordinates listed in
the wizard window as shown in the following figure.
11. Click Next and make sure that the Use web services option is toggled
on.
12. Click Next and select NED 1/3 Arc Sec Data and TerraServer aerial
photo. Then click Download Data From Web.
13. WMS will download both the DEM and background aerial photo for
the watershed (Note: There are times when the web services may be
unavailable so if WMS does not download the data directly you could
download the data outside of WMS. You can download the DEM data
from the USGS at http://seamless.usgs.gov and the aerial photo from
MSR maps at http://msrmaps.com. Alternatively, if you were unable to
download the DEM and/or image, you can find a copy in
C:\Training\RawData\JudysBranch\DEM).
14. Once the DEM downloads, the Importing NED GridFloat File dialog
will open. Select the Enclose All DEM(s) button and click OK.
2-5 REFER
15. WMS will now download the aerial photo from TerraServer. If
prompted, select Yes to generate pyramids.
16. After the DEM and the image have finished downloading, you can
move the Hydrologic Modeling Wizard to the side and you should see
both the DEM contours and the aerial photograph in the WMS graphics
window.
17. Close the Hydrologic Modeling Wizard dialog.
4. You can now see lines representing areas of flow accumulation above a
threshold value on the display. These are the areas where flow
accumulates on the DEM, and these areas may represent stream
channels.
5. You need to create an outlet point to delineate a watershed. Select the
Create Outlet Point Button
. Locate the point where you want the
outlet for the watershed to be. See the following figure for the
approximate location of the outlet (you can use the middle scroll button
of the mouse to zoom in or out).
Outlet
2-7 REFER
6. You can now see grid cells covering the watershed. Notice that under
the Coverages in the data tree, the Drainage coverage has been now
changed to GSSHA.
7. Do NOT save the WMS project because the GSSHA grid information
and model are saved to a GSSHA project file instead of to a WMS
project.
8. Switch to the 2D grid Module
file...
9. Save
the
project
JudysBase.prj
as
CHAPTER
found.
In order to develop a grid into a GSSHA model, several attributes such as surface
roughness, infiltration, porosity, moisture content, and others need to be defined for
each cell. This tutorial focuses on the development of these hydrologic parameters
for GSSHA grids using commonly available land use and soil GIS data.
Since GSSHA uses spatially varying parameters, it would be extremely time
consuming to enter such parameters for each grid cell one by one. You will define
the parameters for each cell by aggregating cells of similar soil and/or land use
properties using Index Maps. If there are only 5-6 different soils in a watershed
then you would define infiltration properties for each of these soils in a table. This
is much less time consuming than having to define the values separately for each
cell. In this tutorial you will learn how these Index Maps are created in WMS.
1. We will continue working with the Judys Branch gridded model that you
saved in the previous workshop.
2. To open the GSSHA project, switch to the 2D Grid Module
and select
GSSHA | Open Project File.... You can also select File | Open to open a
GSSHA project file.
3. If you have saved the project in the previous workshop, open the project
from C:/Training/ Personal/WatershedDel/JudysBase.prj.
If you were not able to save the
C:/Training/WatershedDel/JudysBase.prj.
project,
you
can
open
4. Select GSSHA | Save Project File... and save the project with new a name
as C:/Training/Personal/FeatureObjects/JudysParam.prj so the original
project is not overwritten.
3. Right click the shapefiles and view the attribute tables. You should be able
to see the USGS land use code (LUCODE).
4. In order to use the land use data, the polygons overlapping our watershed
need to be copied to a WMS land use coverage. This is done from the GIS
module.
3-3
5. In the project explorer, right click on Coverages and select New Coverage.
6. Set the coverage type to be Land use and click OK. This will create a new
land use coverage in the project explorer.
7. Click on the new Land use coverage in the Explorer window to make it
active.
8. Select either Belleville.shp or StLouis.shp (under GIS layers) to activate the
GIS module.
9. Click on the Select shapes tool
(should be selected by default) and
drag a rectangle around your watershed area to select all land use polygons
that overlap this basin.
10. Select Mapping | Shapes > Feature objects, click Next and make sure
that LUCODE is mapped to Land use. Click Next and click Finish.
11. WMS no longer needs the GIS data once it is mapped to a coverage in the
map module. You may now delete the shape files under GIS layers (Right
click on the shapefiles Belleville.shp and Stlouis.shp and select delete).
3. This data is as it was downloaded and needs to be processed to join the soil
attributes.
4. Join the attributes for the shapefile you added. To do this, right click the
shapefile (soilmu_a_il119.shp) and select Join NRCS Data. Turn on the
options to Fill blank values and Compute hydraulic conductivity. Refer
to section 1.8.2 of this tutorial for details about joining a SSURGO soil
shapefiles soil types with other SSURGO attributes.
5. Create a new coverage and change the type to Soil Type.
6. Map the polygons from the soil shapefile that overlap the watershed to the
newly created soil type coverage. (Similar to how you mapped land use
data, see section 3.1.1)
7. Once you have mapped the soil polygons delete the SSURGO shapefile
(soilmu_a_il119.shp) from the project explorer.
8. You may now turn off the display of the Land Use and Soil Type coverages
by turning off the toggle boxes next to these coverages in the project
explorer. Make sure that the display of the GSSHA coverage and 2D Grid
Data are turned on.
9. Click the Frame button
3-5
5. Click Done.
This will create an index map that has the same ID value (1 in this case) for
each grid cell. A uniform index map is used to define parameters which are
uniform over the watershed domain. For example, if you assume uniform
overland roughness in the watershed, then a uniform index map can be used to
define the roughness for the whole watershed.
1. In the GSSHA Maps dialog, select Land Use for Input Coverage (1). Enter
the name Land Use for the Index Map Name.
3-7
5. You could now enter the descriptions and roughness values for each of
these IDs. You will see in the following section how to read a file
containing the descriptions and default roughness values, so there is no
need to enter the descriptions and roughness values at this time. The IDs
seen in the spreadsheet are USGS Standard Land use codes. The USGS
classification table helps you identify each land use type based on its ID. A
portion of this table is shown below:
6. Map tables are created for other hydrologic and hydraulic characteristics of
a watershed using different index maps. You may switch through each of
the different tabs in the GSSHA Map Table Editor dialog. When selecting
some tabs, you will be prompted to change job control settings. For
example, if you have not turned infiltration on but if you select the
Infiltration tab in the mapping table editor, WMS prompts you if you want
to turn the infiltration on. Select No when these messages appear.
7. Select Done in the GSSHA Map Table Editor to close the window.
3-9
2. This will open the sample .cmt file in a text editor. You can go through
different sections of this file and see how the parameters for each index
map value are stored in a .cmt file. The roughness values for each USGS
land use in this file are obtained from standard text books.
Similarly, the infiltration parameters in this file were obtained from Rawls
and Brakenseik's table (Rawls, W. J., Brakensiek, D. L., and Miller, N.
(1983). Green-Ampt infiltration parameters from soils data, ASCE J.
Hyd. Engr. 109(1), 62-70.). This table provides Green and Ampt
infiltration parameters based on soil textures. You imported soil texture
while processing the SSURGO soil data in a previous section so you can
use this texture to derive infiltration parameters.
The USGS land use files and SSURGO soils files use consistent IDs and
texture classifications. To avoid defining the roughness and infiltration
values each time you create a new GSSHA model, we created a master
mapping file from the literature that has roughness values defined for each
USGS land use code and infiltration parameters for each SSURGO soil
texture. This table can be found in C:\Training\gssha.cmt. These values
are not intended to be absolute for every project, but the values define a
reasonable starting point.
3. It is important to note that WMS creates a .cmt file each time you create a
GSSHA model. This .cmt file is saved in the same folder where your
GSSHA project is saved. However, this .cmt file does not have all the
parameters listed as you saw in the master .cmt file found in
C:\Training\gssha.cmt. WMS will save out only those parameters for the
IDs that are present in your index maps.
4. Close the .cmt file.
5. Instead of typing the parameters for roughness, infiltration, or other
mapping table parameters, you can import a .cmt file that already has these
values listed like the one you just viewed. To import the gssha.cmt file,
select GSSHA | Map Tables. Click on the Import Table button in the
GSSHA Map Table Editor dialog and browse for the
C:\Training\gssha.cmt file. Open this file and notice the values in the
mapping table editor are populated with the values from the .cmt file.
Click Done to close the GSSHA Map Table Editor dialog.
1. In the 2D Grid Module, select GSSHA | Maps to open the GSSHA Maps
dialog. Then check the toggle to use the second input coverage (turn on
Input coverage (2)).
2. Select Soil Type for the first input with Texture as the attribute and Land
use for the second input with ID as the attribute.
3. Change the name to Combined and create an index map by selecting the
Coverages->Index Map button.
4. This combined index map can now be used in the GSSHA Map Table
Editor to generate infiltration parameter IDs.
One thing to note here that when you import a standard .cmt file to fill in the
infiltration parameters, the parameter values are obtained from Rawls and
Brakenseik's table and, as we already discussed, these values are for the bare earth
condition. You will have to manually adjust the parameters during calibration if
you are using a combined index map to generate infiltration parameters.
3-11
In the above figure, there are four GSSHA projects namely Infiltration,
GSSHAModel2, GSSHAModel3 and GSSHAModel4. The screenshot shows the
saving of GSSHAModel4.
3.5 Task
In this workshop you learned how an index map is created using WMS. You
learned that an index map can be created using the data calculator (as in the
uniform index map example), using land use and soil type data, and using a
combination of land use and soil data.
This section gives you a few more tips about editing index maps.
1. In the 2D Grid Module, open the GSSHA Maps dialog (GSSHA | Maps
menu item).
2. Open the Data Calculator by clicking the Data Calculator button.
3. In the data calculator, double click the index map you want to copy. Doing
this will put text representing the index map in the Expression field.
4. Check the Index Map toggle on and enter an appropriate name.
5. Click the Compute button. This will create a copy of the index map you
selected.
6. You should see your index map added to the project explorer.
7. In the figure above, the data calculator is set to create a copy of the Land
Use index map. Close both the data calculator and the GSSHA Maps
windows by clicking on the Done buttons in each dialog.
3-13
4. Changing the Index Map IDs for the selected cells will update the index
map. Because these cells have new index map IDs, they will now display
as a different color.
5. If the area where you want to change IDs is not rectangular, then with the
Select Grid Cell Tool
selected, you can press and hold Shift Key in the
Keyboard and click on the cells you want to change.
6. Alternatively, you can select grid cells with a polygon. Select Edit | Select
with Polygon. Then draw the polygon to include the cells you want to
select.