Watershed

Running programmatically

Delineates Watersheds (Drainage basins) from a D8 Flow Direction raster for a set of Outlet points.

Inputs:

Outputs:

Example:

An example of Watershed output using Outlet points.

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name Watershed
<input raster> A String representing the input D8 Flow Direction Raster.
<output raster> A String - the full name of the output raster.
{OutletPoints} A String - the full path to a point layer with the Outlet points.
{OutletIDField} A String - the name of an Integer Field in the Outlet Point layer with values to be assigned to the delineated Watersheds.

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")

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

Notes:

(Go to TOP)