Flow Direction D8

Running programmatically

Generates a Flow Direction raster in which each cells represents the direction of flow for this cell in the DEM using the D8 method.

Inputs:

Outputs:

For example if the steepest descent of a cell is to the left, its Flow direction will be coded as 1, if it is to upper right, it will be coded as 32. The steepest descent is calculated by dividing the elevation difference by the distance between the cell centers.

Example:

An example of Flow Direction D8 output.

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name FlowDirectionD8
<input raster> A String representing the input DEM raster dataset.
<output raster> A String - the full name of the output raster.

Running the function

ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")

UnitsDegrees
Language Syntax
Python subprocess.call([ETSPath, "FlowDirectionD8", "input raster", "output raster"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "FlowDirectionD8" "input raster" "output raster"
.NET using ETSOutX.dll FlowDirectionD8(input raster, output raster)
ArcPy arcpy.FlowDirectionD8("input raster", "output raster")

Notes:

(Go to TOP)