TauDEM Toolbox banner

Move Outlets To Streams

Title Move Outlets To Streams

Summary

Moves outlet points that are not aligned with a stream cell from a stream raster grid, downslope along the D8 flow direction until a stream raster cell is encountered, the max_dist number of grid cells are examined, or the flow path exits the domain (i.e. a "no data" value is encountered for the D8 flow direction). The output file is a new outlets shapefile where each point has been moved to coincide with the stream raster grid, if possible. A field 'dist_moved' is added to the new outlets shapefile to indicate the changes made to each point. Points that are already on a stream cell are not moved and their 'dist_moved' field is assigned a value 0. Points that are initially not on a stream cell are moved by sliding them downslope along the D8 flow direction until one of the following occurs: a.) A stream raster grid cell is encountered before traversing the max_dist number of grid cells. In which case, the point is moved and the 'dist_moved' field is assigned a value indicating how many grid cells the point was moved. b.) More than the max_number of grid cells are traversed, or c) the traversal ends up going out of the domain (i.e., a "no data" D8 flow direction value is encountered). In which case, the point is not moved and the 'dist_moved' field is assigned a value of -1.


Syntax

MoveOutletsToStreams (Input_D8_Flow_Direction_Grid__must_be__tif_, Input_Stream_Raster_Grid__must_be__tif_, Input_Outlets_Shapefile__must_be__shp_, Input_Maximum_Distance, Input_Number_of_Processes, Output_Outlet_Shapefile__must_be__shp_)

Parameter Explanation Data Type
Input_D8_Flow_Direction_Grid__must_be__tif_ Dialog Reference

This input is a grid of flow directions that are encoded using the D8 method where all flow from a cells goes to a single neighboring cell in the direction of steepest descent.

D8 Flow Direction Encoding

Flow Direction Coding: 1 -East, 2 - Northeast, 3 - North, 4 - Northwest, 5 - West, 6 - Southwest, 7 - South, 8 - Southeast.

This grid can be obtained as the output of the "D8 Flow Directions" tool.

Raster Layer (Must be TIFF File)
Input_Stream_Raster_Grid__must_be__tif_ Dialog Reference

This output is an indicator grid (1,0) that indicates the location of streams, with a value of 1 for each of the stream cells and 0 for the remainder of the cells. This file is produced by several different tools in the "Stream Network Analysis" toolset.

Raster Layer (Must be TIFF File)
Input_Outlets_Shapefile__must_be__shp_ Dialog Reference

A point shape file defining points of interest or outlets that should ideally be located on a stream, but may not be exactly on the stream due to the fact that the shapefile point locations may not have been accurately registered with respect to the stream raster grid.

Feature Layer (Must be SHP File)
Input_Maximum_Distance Dialog Reference

This input paramater is the maximum number of grid cells that the points in the input outlet shapefile will be moved before they are saved to the output outlet shapefile.

Double
Input_Number_of_Processes Dialog Reference

This input indicates the number of stripes that the domain will be divided into and the number of MPI parallel processes that will be spawned to evaluate each piece of the domain.

Long
Output_Outlet_Shapefile__must_be__shp_ Dialog Reference

A point shape file defining points of interest or outlets. This file has one point in it for each point in the input outlet shapefile. If the original point was located on a stream, then the point was not moved. If the origianl point was not on a stream, the point was moved downslope according to the D8 flow direction until it reached a stream or the maximum distance had been reached. This file has an additional field "dist_moved" added to it which is the number of cells that the point was moved. This field is 0 if the cell was originally on a stream, -1 if it was not moved becuase there was not a stream within the maximum distance, or some positive value if it was moved.

Feature Layer