This tool generate one or more longitudinal profiles for the flowpaths issuing from a set of vector points. The user must specify the name of an input digital elevation model (DEM) raster. The DEM should have been pre-processed to remove all sinks using a flow-enforcement technique such as depression breaching or filling, which will also remove flat areas, ensuring continuous flowpaths. The user must also specify the name of an input seed points vector file. An optional text file (.csv) may also be created in addition to the line graph that is automatically generated.
The vector seeds points file can be generated through on-screen digitizing using the Create New Shapefile tool. See this link for more detailed instructions on how to carry out on-screen digitizing.
The following is an example of a Python script using this tool:
wd = pluginHost.getWorkingDirectory()
demFile = wd + "dem.dep"
seedFile = wd + "seeds.shp"
textFile = "not specified"
args = [demFile, seedFile, textFile]
pluginHost.runPlugin("LongProfileFromPoint", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def demFile = wd + "dem.dep"
def seedFile = wd + "seeds.shp"
def textFile = "not specified"
String[] args = args = [demFile, seedFile, textFile]
pluginHost.runPlugin("LongProfileFromPoint", args, false)