[GRASS-SVN] r59454 - grass-addons/grass7/raster/r.stream.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 27 11:10:25 PDT 2014


Author: neteler
Date: 2014-03-27 11:10:22 -0700 (Thu, 27 Mar 2014)
New Revision: 59454

Modified:
   grass-addons/grass7/raster/r.stream.stats/r.stream.stats.html
Log:
r.stream.stats manual: HTML beautified

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 18:06:43 UTC (rev 59453)
+++ grass-addons/grass7/raster/r.stream.stats/r.stream.stats.html	2014-03-27 18:10:22 UTC (rev 59454)
@@ -1,6 +1,5 @@
 <h2>DESCRIPTION</h2>
 
-<p>
 The module <em>r.stream.stats</em> is prepared to calculate Horton's
 statistics of drainage network.
 
@@ -50,6 +49,7 @@
 <dd>Elevation: name of input elevation map. Map can be of type CELL,
 FCELL or DCELL. It is not restricted to resolution of region settings
 as <b>stream_rast</b> and <b>direction</b> raster map.</dd>
+</dl>
 
 <h3>OUTPUTS</h3>
 
@@ -63,7 +63,6 @@
 
 <h2>NOTES</h2>
 
-<p>
 These statistics are calculated according to formulas given by
 R.Horton (1945). Because Horton do not defined precisely what is
 stream slope, 2 different approaches have been proposed: the first
@@ -90,7 +89,6 @@
 <li>total area of basins of a given order 
 <li>drainage density
 <li>stream density
-
 <li>average length of streams of a given order (std)
 <li>average slope (cell by cell inclination) of streams of a given order (std)
 <li>average gradient (spring to outlet inclination) of streams of a given order
@@ -115,11 +113,10 @@
 <li>total basin area
 <li>drainage density
 <li>stream density
-<ul>
-
-Ratios:
 </ul>
 
+Ratios:
+<ul>
 <li>bifurcation ratio (std)
 <li>length ratio (std)
 <li>slope and gradient ratios (std)
@@ -138,8 +135,9 @@
 computation. Streams for the desired basin can be extracted by the
 following <em><a href="r.mapcalc.html">r.mapcalc</a></em> formula:
 
-<div class="code"<pre>
-echo 'sel_streams=if(basin==xxx,streams,null())' | r.mapcalc #xxx category of desired basin
+<div class="code"><pre>
+#xxx category of desired basin
+r.mapcalc "sel_streams = if(basin==xxx,streams,null())"
 </pre></div>
 
 <p>
@@ -171,6 +169,7 @@
 r.stream.stats stream_rast=horton direction=direction elevation=elevation
 # export for processing in R
 r.stream.stats -o stream_rast=horton direction=direction 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