Aquaveo & Water Resources Engineering News

Using the Clean Options function

When building your Surface-water Modeling System (SMS) project, are you encountering issues because of poorly rendered or imported feature objects? When you have a large number of feature objects, it can be easy to have some drawn in the wrong location, overlapping other objects, or other errors. This can interfere with the operation of the simulation. Cleaning up the feature objects can make the difference in a successful running simulation and one that fails to converge.

Example of the Clean Options before and after

When you create your surface water model, either by extracting features from existing data or building them manually, you can end up with multiple arcs and points that are unnecessary for your SMS model or may even interfere with the model’s simulation. By using the Clean Options dialog, you can consolidate or eliminate points, nodes, vertices, and arcs, all based on parameters you select.

The Clean Options dialog gives you multiple options. You can choose to clean every arc in a coverage, but perhaps you only want to focus on one set of arcs, one branch of a stream network for instance. The dialog will allow you to choose. You can run a full clean or select specific actions. You can control how close points, nodes, vertices, and arcs have to be before they are considered for snapping. You can also remove arcs that are less than a length you choose to enter.

The Clean Options dialog can be reached either through the Clean Options macro at the top of SMS, or through the Feature Objects | Clean… menu command. The algorithm used by the dialog applies clean operations to the active coverage in a priority order. Sometimes, snapping will create new cleaning opportunities and bumps the newly created opportunity to the top of the priority list. It will need to go through multiple iterations to check that all have been completed.

For instance, locations are sorted from left-to-right by their X-coordinates, with ties broken by sorting from bottom-to-top by their Y-coordinates. Segments are sorted by comparing their endpoints using the same comparison as for locations. Then the "first" locations on each segment are compared, and the segment containing the earlier location is chosen first. In the event of a tie, the "second" location is used to break the tie, and so on until all points, nodes, and arc segments have been cleaned. Once a location is moved, it is locked in place for the remainder of the iteration.

It is often wise to first duplicate the coverage you are trying to clean and rename it, before running the Clean Options dialog on the duplicate coverage. That way, if the parameters set were too high, you can go back to the original coverage, duplicate, and run it again with different parameters. If the clean didn’t change much, you can alter the selections and run it again.

The Clean Options function can save you a lot of time in fixing issues with your feature objects. Head on over to SMS, and see if the Clean Options function can help your project!

Blog tags: 

Best Uses for the Clip and Trim Coverage Tools

Did your Surface-water Modeling System (SMS) project end up with an excessive amount of arcs, nodes and points in a coverage? Maybe the shapefile you imported converted many more details than your project needed, or extracting features from your raster did the same. There are several ways you could go about simplifying the project to ensure the simulation only covers what is needed. We have a couple of tools that can help you simplify the amount of feature objects your project will deal with: the Clip tool and the Trim Coverage tool.

Both located in the Toolbox under the Coverages folder, the Clip and the Trim Coverage tools allow you to limit the feature objects within an area and create a new coverage containing what is desired.

The Clip tool limits arcs to only those inside a selected separate coverage that has a polygon which defines where to trim the feature objects on the target coverage. This trim coverage will typically be a coverage you create and can be of any coverage type. The Clip tool quickly creates a new coverage with arcs, nodes, and points located within the polygon desired. Where the arcs are “cut” at the polygon edge, a new node is created at the new endpoint.

Example of the Clip Tool before and after

The Trim Coverage tool works similar to the Clip tool but has a few more options. The extra options allow you to choose to trim to the inside or to the outside of the selected coverage polygons, trim to the inside being the default. And also, you can specify a buffer distance to trim to: how close to the polygon boundary you want the arcs, etc. to be trimmed to.

For either of the tools, you will need the coverage containing the arcs, nodes, and points needing to be limited, and also, the coverage containing the polygons which will define the boundaries of where the clipping or trimming will occur. For the Trim Coverage tool, you have the two additional parameters to define, if desired.

After entering a name for the soon-to-be created coverage, run the tool. For both the Clip and Trim Coverage tools, it will clip all the arcs to the limits of the polygon, creating a new endpoint or node at the point where the original arc intersected the polygon boundary.

Head on over to SMS and see how these tools can help your project today!

Blog tags: 

Three Methods for Assigning CHD

Do you have a Ground-water Modeling System (GMS) project where you are needing to edit values in your constant head cells? If it is a simple grid approach, academic-style project, editing each cell is likely fine. But if you have a large, more complex, conceptual model, editing the constant head cells may prove problematic. Here are some ways that you can accomplish this with a minimum of effort.

A constant head (CHD) cell is an area where the water levels will remain fairly steady no matter what the inflow or outflow may be. Lakes, coastal areas, etc. are good candidates of constant head boundaries. Assigning cells to be constant heads provides a steady boundary where the water levels will stay the same for the model duration.

Example of a CHD boundary

The constant head cells are typically assigned or edited in one of three ways. One method is to directly edit the IBOUND array. When setting up a MODFLOW simulation or when editing packages, the MODFLOW | Global Options menu will let you choose the IBOUND package to edit the options there including the array. Copying and pasting data from an external spreadsheet into the array could save you time here.

Another method is to select a set of cells and use the 3D Grid Cell Properties dialog. You can right-click on a cell to bring up the dialog. Make sure you are on the MODFLOW tab and edit the “IBOUND” and “Starting head” rows. If multiple cells are selected, this will edit all selected cells.

The simplest method is to define the constant head zones using feature objects as part of a conceptual model in the Map module. When you set up a coverage using the feature objects, the Coverage Setup dialog will allow you to assign CHD to cells in the grid. You can change what the default assignment will be if you also select “Layer Range” and make changes using the Attribute Table.

Whichever method you choose to assign CHD, when you are ready to run your ground-water model, the Model Checker can be used to see if there are errors in the assigned constant head cells. Then you can correct those cells mentioned specifically by using the IBOUND array or the Cell Properties dialog as mentioned above.

Head on over to GMS and see which method of defining your constant head cells works best for you!

Blog tags: 

Easily Snapping Outlet Points to Stream Arcs

When creating your Watershed Modeling System (WMS) project, did you find that your outlet point isn’t in the right place on the stream arc? Outlet points are placed at the points of confluence in a watershed. Designating an outlet point is necessary for delineating a watershed, but it must be placed correctly. The Snap Outlet Points to Streams tool, found in the Toolbox, can help place the outlet points in the correct locations.

Example of a point that is not snapped to the streams

If an outlet point is near but not on a stream arc, WMS can automatically snap an outlet point to the stream, or the stream arc to the outlet point, within a very limited range, depending on which was created first. But if two stream arcs are close together, and the outlet point between them, the auto-snapping may place it on the wrong stream arc, thus making the watershed delineation incorrect. Or, the outlet point may be placed far enough away from the stream arcs that WMS can’t automatically snap it to the appropriate stream arc for watershed delineation. When an outlet point is placed incorrectly, it can cause problems for your model. Either the watershed delineation will fail, or the basins created could have incorrect boundaries. This is where the Snap Outlet Points to Streams tool can be useful.

The Snap Outlet Points to Streams tool will allow you to place outlet points away from the stream arcs but still snap them to a stream. It allows you to define how far away from the outlet point to look for a stream arc. While you still should be cautious about outlet point placement, it gives you a little more latitude in creation locations to ensure the correct delineation of the watershed.

To find the Snap Outlet Points to Streams tool, you will need to look in the Toolbox under the Coverages folder. When you open it, you will choose the input coverage containing the outlet points, and also, the input raster streams file. You will need to define the maximum distance in map units for the tool to search for the stream arcs to snap to. After entering a new coverage name for the output coverage to be created, you can run the tool.

Head on over to WMS and try the Snap Outlet Points to Streams tool today!

Blog tags: