[GRASS-SVN] r64849 - grass/branches/releasebranch_7_0/raster/r.walk
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 12 19:42:42 PDT 2015
Author: annakrat
Date: 2015-03-12 19:42:42 -0700 (Thu, 12 Mar 2015)
New Revision: 64849
Modified:
grass/branches/releasebranch_7_0/raster/r.walk/r.walk.html
Log:
r.walk: add example to man page (merge from trunk, r64848)
Modified: grass/branches/releasebranch_7_0/raster/r.walk/r.walk.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.walk/r.walk.html 2015-03-13 02:40:53 UTC (rev 64848)
+++ grass/branches/releasebranch_7_0/raster/r.walk/r.walk.html 2015-03-13 02:42:42 UTC (rev 64849)
@@ -127,6 +127,29 @@
option, default is 300 MB. For systems with less memory this value will
have to be set to a lower value.
+<h2>EXAMPLES</h2>
+We compute a map showing how far a lost person could get from the
+point where he or she was last seen
+while taking into account the topography and landcover.
+<div class="code"><pre>
+g.region swwake_30m -p
+
+# create friction map based on land cover
+r.recode landclass96 out=friction << EOF
+1:3:0.1:0.1
+4:5:10.:10.
+6:6:1000.0:1000.0
+7:7:0.3:0.3
+EOF
+
+r.walk -k elevation=elev_ned_30m friction=friction output=walkcost \
+ start_coordinates=635576,216485 lambda=0.5 max=10000
+
+# compute contours on the cost surface to better understand
+# how far the person can get in certain time (1000 is in seconds)
+r.contour walkcost output=walkcost step=1000
+</pre></div>
+
<h2>REFERENCES</h2>
<ul>
More information about the grass-commit
mailing list