[GRASS-SVN] r72708 - grass-addons/grass7/vector/v.lfp
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 14 19:04:36 PDT 2018
Author: hcho
Date: 2018-05-14 19:04:36 -0700 (Mon, 14 May 2018)
New Revision: 72708
Modified:
grass-addons/grass7/vector/v.lfp/v.lfp.html
Log:
Add NC sample dataset example
Modified: grass-addons/grass7/vector/v.lfp/v.lfp.html
===================================================================
--- grass-addons/grass7/vector/v.lfp/v.lfp.html 2018-05-15 02:03:56 UTC (rev 72707)
+++ grass-addons/grass7/vector/v.lfp/v.lfp.html 2018-05-15 02:04:36 UTC (rev 72708)
@@ -15,17 +15,26 @@
<h2>EXAMPLE</h2>
+<h3>North Carolina sample dataset example</h3>
+
<div class="code"><pre>
-# Creates a longest flow path raster map.
-r.watershed elevation=elev drainage=drain
-r.water.outlet input=drain output=basin coordinates=-888857.11,1117788.38
-r.lfp input=drain output=lfp coordinates=-888857.11,1117788.38
+# set computational region
+g.region raster=elevation -p
-# The end point of lfp can be the headwater of the longest flow path.
+# calculate drainage directions
+r.watershed elevation=elevation drainage=drain_directions
+
+# calculate outlet point related watershed
+r.water.outlet input=drain_directions output=basin coordinates=642455,222614
+
+# calculate longest flow path
+r.lfp input=drain_directions output=lfp coordinates=642455,222614
+
+# the end point of lfp can be the headwater of the longest flow path
v.lfp input=lfp output=lfp
-# Make sure the end point of lfp2 is the outlet point.
-v.lfp input=lfp output=lfp2 coordinates=-888857.11,1117788.38
+# make sure the end point of lfp2 is the outlet point
+v.lfp input=lfp output=lfp2 coordinates=642455,222614
</pre></div>
<h2>SEE ALSO</h2>
More information about the grass-commit
mailing list