[GRASS-SVN] r59403 - in grass-addons/grass7/raster: r.stream.channel r.stream.distance r.stream.order r.stream.segment r.stream.slope r.stream.snap r.stream.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 27 04:57:00 PDT 2014


Author: hellik
Date: 2014-03-27 04:57:00 -0700 (Thu, 27 Mar 2014)
New Revision: 59403

Modified:
   grass-addons/grass7/raster/r.stream.channel/r.stream.channel.html
   grass-addons/grass7/raster/r.stream.distance/r.stream.distance.html
   grass-addons/grass7/raster/r.stream.order/r.stream.order.html
   grass-addons/grass7/raster/r.stream.segment/r.stream.segment.html
   grass-addons/grass7/raster/r.stream.slope/r.stream.slope.html
   grass-addons/grass7/raster/r.stream.snap/r.stream.snap.html
   grass-addons/grass7/raster/r.stream.stats/r.stream.stats.html
Log:
add examples with nc sample data set to the r.stream.*-modules

Modified: grass-addons/grass7/raster/r.stream.channel/r.stream.channel.html
===================================================================
--- grass-addons/grass7/raster/r.stream.channel/r.stream.channel.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.channel/r.stream.channel.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -99,10 +99,10 @@
 stream of the catchment:
 
 <div class="code"><pre>
-r.watershed elevation=elevation.10m threshold=1000 stream=streams drainage=dirs
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams
 r.stream.order streams=streams dirs=dirs hack=hack
-r.stream.channel streams=hack dirs=dirs elevation=elevation.10m
-identifier=stream_identifier gradient=stream_gradient distance=stream_distance
+r.stream.channel streams=hack dirs=dirs elevation=elevation identifier=stream_identifier distance=stream_distance gradient=stream_gradient
 #495 is a stream identifier. May be different in different situation
 r.mapcalc stgrad=if(stream_identifier==495,float(stream_gradient),null())
 r.mapcalc stdist=if(stream_identifier==495,float(stream_distance),null())

Modified: grass-addons/grass7/raster/r.stream.distance/r.stream.distance.html
===================================================================
--- grass-addons/grass7/raster/r.stream.distance/r.stream.distance.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.distance/r.stream.distance.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -107,6 +107,15 @@
 swamp, depression and lake boundaries even divided into smaller fragments each
 with its own category.
 
+<h2>EXAMPLE</h2>
+
+<div class="code"><pre>
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams
+r.stream.distance stream=streams dirs=dirs elevation=elevation method=downstream distance=distance_stream_downstream difference=difference_stream_downstream
+r.stream.distance stream=streams dirs=dirs elevation=elevation method=upstream distance=distance_stream_upstream difference=difference_stream_upstream
+</pre></div>
+
 <h2>SEE ALSO</h2>
 <em>
 <a href="r.watershed.html">r.watershed</a>,

Modified: grass-addons/grass7/raster/r.stream.order/r.stream.order.html
===================================================================
--- grass-addons/grass7/raster/r.stream.order/r.stream.order.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.order/r.stream.order.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -250,6 +250,17 @@
 r.stream.extract  must be patched by direction map from r.watershed. (with
 r.patch). 
 
+<h2>EXAMPLE</h2>
+
+<div class="code"><pre>
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams
+r.stream.order streams=streams dirs=dirs strahler=riverorder_strahler horton=riverorder_horton shreve=riverorder_shreve hack=riverorder_hack topo=river_topodim
+# vector river network
+r.watershed elevation=elevation threshold=10000 accumulation=accum
+r.stream.order streams=streams dirs=dirs elevation=elevation accum=accum vector=river_vector
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass-addons/grass7/raster/r.stream.segment/r.stream.segment.html
===================================================================
--- grass-addons/grass7/raster/r.stream.segment/r.stream.segment.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.segment/r.stream.segment.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -167,7 +167,15 @@
 r.stream.extract must be used. If stream network was generated with MFD method
 also MFD direction map must be used.
 
+<h2>EXAMPLE</h2>
 
+<div class="code"><pre>
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams
+r.stream.order streams=streams dirs=dirs strahler=riverorder_strahler
+r.stream.segment streams=riverorder_strahler dirs=dirs elevation=elevation segments=river_segment sectors=river_sector
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass-addons/grass7/raster/r.stream.slope/r.stream.slope.html
===================================================================
--- grass-addons/grass7/raster/r.stream.slope/r.stream.slope.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.slope/r.stream.slope.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -38,7 +38,14 @@
 upstream)</dd>
 </dl>
 
+<h2>EXAMPLE</h2>
 
+<div class="code"><pre>
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams
+r.stream.slope dir=dirs elevation=elevation difference=downstream_elev_difference gradient=downstream_gradient maxcurv=downstream_maxcurv mincurv=downstream_mincurv
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass-addons/grass7/raster/r.stream.snap/r.stream.snap.html
===================================================================
--- grass-addons/grass7/raster/r.stream.snap/r.stream.snap.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.snap/r.stream.snap.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -71,7 +71,15 @@
 originally corrected)
 </ol>
 
+<h2>EXAMPLE</h2>
 
+<div class="code"><pre>
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams accumulation=accum
+# snap a point sampled in the riverine landscape to the calculated river network
+r.stream.snap input=mysampleoutlet output=mysampleoutlet_snapped streams=streams accum=accum
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass-addons/grass7/raster/r.stream.stats/r.stream.stats.html
===================================================================
--- grass-addons/grass7/raster/r.stream.stats/r.stream.stats.html	2014-03-27 11:33:09 UTC (rev 59402)
+++ grass-addons/grass7/raster/r.stream.stats/r.stream.stats.html	2014-03-27 11:57:00 UTC (rev 59403)
@@ -131,7 +131,11 @@
 program (like R) to be visualised:
 
 <div class="code"><pre>
-r.stream.stats -o streams=horton dirs=dirs elevation=elevation.10m > tmp_file
+g.region -p -a rast=elevation align=elevation
+r.watershed elevation=elevation threshold=10000 drainage=dirs stream=streams
+r.stream.stats streams=horton dirs=dirs elevation=elevation
+# export for processing in R
+r.stream.stats -o streams=horton dirs=dirs elevation=elevation > tmp_file
 R
 r=read.csv("tmp_file",skip=1,header=TRUE)
 plot(num_of_streams~order,data=r,log="y", 



More information about the grass-commit mailing list