[GRASS-SVN] r61247 - grass/branches/releasebranch_7_0/raster/r.neighbors

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 13 09:30:53 PDT 2014


Author: neteler
Date: 2014-07-13 09:30:53 -0700 (Sun, 13 Jul 2014)
New Revision: 61247

Modified:
   grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html
Log:
r.neighbors manual: merge of r61208; HTML cosmetics backport

Modified: grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html	2014-07-13 16:30:12 UTC (rev 61246)
+++ grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html	2014-07-13 16:30:53 UTC (rev 61247)
@@ -34,37 +34,37 @@
 
 <p><em>Example how to use a selection map with method=average:</em><br>
 input map:
-<pre>
+<div class="code"><pre>
 1 1  1 1 1
 1 1  1 1 1
 1 1 10 1 1
 1 1  1 1 1
 1 1  1 1 1
-</pre>
+</pre></div>
 selection map, NULL values are marked as *:
-<pre>
+<div class="code"><pre>
 * * * * *
 * * 1 * *
 * 1 1 1 *
 * * 1 * *
 * * * * *
-</pre>
+</pre></div>
 The output map:
-<pre>
+<div class="code"><pre>
 1 1 1 1 1
 1 1 2 1 1
 1 2 2 2 1
 1 1 2 1 1
 1 1 1 1 1
-</pre>
+</pre></div>
 Without using the selection map, the output map would look like this:
-<pre>
+<div class="code"><pre>
 1 1 1 1 1
 1 2 2 2 1
 1 2 2 2 1
 1 2 2 2 1
 1 1 1 1 1
-</pre>
+</pre></div>
 
 <p>Optionally, the user can also specify the <b>TITLE</b> to
 be assigned to the raster map layer <b>output</b>, elect
@@ -113,16 +113,16 @@
 <dt><b>maximum</b> 
 
 <dd>The maximum value within the neighborhood.
-<pre>
+<div class="code"><pre>
        Raw Data     Operation     New Data
-   ----------------          ----------------
-   | 7  | 7  |  5 |          |    |    |    |
-   |----|----|----| average  |----|----|----|
-   | 4  | 7  |  4 |--------->|    |  6 |    |
-   |----|----|----|          |----|----|----|
-   | 7  | 6  |  4 |          |    |    |    |
-   |----|----|----|          |----|----|----|
-</pre>
+   +---+---+---+          +---+---+---+
+   | 7 | 7 | 5 |          |   |   |   |
+   +---+---+---+ average  +---+---+---+
+   | 4 | 7 | 4 |--------->|   | 6 |   |
+   +---+---+---+          +---+---+---+
+   | 7 | 6 | 4 |          |   |   |   |
+   +---+---+---+          +---+---+---+
+</pre></div>
 
 <dt><b>range</b>
 
@@ -169,13 +169,13 @@
 cell fall into the neighborhood for that cell.
 The <b>size</b> must be an odd integer.
 For example,
-<pre>
+<div class="code"><pre>
                               _ _ _
                              |_|_|_| 
     3 x 3 neighborhood --->  |_|_|_|
                              |_|_|_|
 
-</pre>
+</pre></div>
 <p>
 <em>Matrix weights:</em>
 A custom matrix can be used if none of the neighborhood operation
@@ -184,37 +184,37 @@
 matrix size.  The weights desired are to be entered into a text file.
 For example, to calculate the focal mean with a matrix <b>size</b> of
 3,
-<pre>
+<div class="code"><pre>
 r.neigbors in=input.map out=output.map size=3 weight=weights.txt
-</pre>
+</pre></div>
 
 The contents of the weight.txt file:
-<pre>
+<div class="code"><pre>
 3 3 3
 1 4 8
 9 5 3
-</pre>
+</pre></div>
 
 This corresponds to the following 3x3 matrix:
-<pre>
-    -------
-    |3|3|3|
-    -------
-    |1|4|8|
-    -------
-    |9|5|3|
-    -------
-</pre>
+<div class="code"><pre>
++-+-+-+
+|3|3|3|
++-+-+-+
+|1|4|8|
++-+-+-+
+|9|5|3|
++-+-+-+
+</pre></div>
 
 To calculate an annulus shaped neighborhood the contents of weight.txt file 
 may be e.g. for size=5:
-<pre>
+<div class="code"><pre>
  0 1 1 1 0
  1 0 0 0 1
  1 0 0 0 1
  1 0 0 0 1
  0 1 1 1 0
-</pre>
+</pre></div>
 
 The way that weights are used depends upon the specific aggregate
 (<b>method</b>) being used.



More information about the grass-commit mailing list