This tool can be used to extract the values from one or more raster images at a set of points specified by a shapefile of POINT ShapeType. The user must input the names of one or more raster images and the name of the vector points file. The tool will output a line graph where each point in the input vector file is presented as a unique line with each pixel value in the raster stack given a node in the line, representing the pixel value. This tool could be used to create the spectral signature for a group of multispectral images for specified pixels. The order of the fields will match that of the input rasters. The user may also optionally output a text file containing the pixel values cooresponding to the points.
This tool is very similar in function to the Extract Raster Values At Points tool except that this tool's output is graphical.
The following is an example of a Python script using this tool:
wd = pluginHost.getWorkingDirectory()
# The names of the multiple input files must
# be separated by semicolons in the string.
inputFiles = wd + "input1.dep" + ";" + wd + "input2.dep" + ";" + wd + "input3.dep"
pointsFile = wd + "points.shp"
textFile = "not specified"
args = [inputFiles, pointsFile, textFile]
pluginHost.runPlugin("ImageStackProfile", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
// The names of the multiple input files must
// be separated by semicolons in the string.
def inputFiles = wd + "input1.dep" + ";" + wd + "input2.dep" + ";" + wd + "input3.dep"
def pointsFile = wd + "points.shp"
def textFile = wd + "textOutput.txt"
String[] args = [inputFiles, pointsFile, textFile]
pluginHost.runPlugin("ImageStackProfile", args, false)