Find lowest/highest locations

This tool locates the lowest and/or highest cells in a raster and outputs these locations to a vector points file (shapefile). The user must specify the name of the input raster and the name of the output vector file. The user also has the option to locate either the lowest value, highest value, or both values. The output shapefile's attribute table will contain fields for the points XY coordinates and their values.

See Also:

Scripting:

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

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

This is a Groovy script also using this tool:

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

Credits: