Create blank outlet raster

This tool can be used to create a new raster, filled with NoData values, which possesses the same co-ordinates and demensions (i.e. rows and columns) as an existing base image. The new blank output raster can then be used to digitize outlet grid cells (i.e. pour points), using the Modify Pixel Values tool in the Whitebox toolbar, that will serve as an input to the Watershed tool. The user must specify the name of the base image. The base image can be any specified raster, though it is most logical to use either the digital elevation model (DEM), the flow-pointer grid, or the flow-accumulation grid. The output raster can then be overlaid transparently (since each grid cell contains NoData) overtop the flow-accumulation grid and, using the Modify Pixel Values tool, the user can assign specific grid cells unique identifiers for outlet cells. The user may wish to apply the Jenson Snap Pour Points tool to ensure that all of the outlet cells are located on the 'digital' stream prior to using the Watershed tool.

See Also:


The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
args = [inputFile, outputFile]
pluginHost.runPlugin("CreateBlankOutletRaster", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.dep"
String[] args = [inputFile, outputFile]
pluginHost.runPlugin("CreateBlankOutletRaster", args, false)