Fill single-cell pits

This tool can be used to remove pits from a digital elevation model (DEM). Pits are single grid cells with no downslope neighbours. They are important because they impede overland flow-paths. This tool will remove any pits in the input DEM that can be resolved by raising the elevation of the pit such that flow will continue past the pit cell to one of the downslope neighbours. Notice that this tool can be a useful pre-processing technique before running one of the more robust depression filling or breaching techniques, which are designed to remove larger depression features.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
DEMFile = wd + "DEM.dep"
outputFile = wd + "output.dep"
args = [DEMFile, outputFile]
pluginHost.runPlugin("FillPits", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def DEMFile = wd + "DEM.dep"
def DEMFile = wd + "output.dep"
String[] args = [DEMFile, outputFile]
pluginHost.runPlugin("FillPits", args, false)

Credits: