[GRASS-SVN] r59138 - grass/trunk/raster/r.recode
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 25 11:29:46 PST 2014
Author: neteler
Date: 2014-02-25 11:29:46 -0800 (Tue, 25 Feb 2014)
New Revision: 59138
Modified:
grass/trunk/raster/r.recode/r.recode.html
Log:
r.recode manual: fix example
Modified: grass/trunk/raster/r.recode/r.recode.html
===================================================================
--- grass/trunk/raster/r.recode/r.recode.html 2014-02-24 21:33:16 UTC (rev 59137)
+++ grass/trunk/raster/r.recode/r.recode.html 2014-02-25 19:29:46 UTC (rev 59138)
@@ -11,10 +11,10 @@
<p>Rules are defined in one of these formats:
<div class="code"><pre>
- old_low:old_high:new_low:new_high
- old_low:old_high:new_val (i.e. new_high == new_low)
- *:old_val:new_val (interval [inf, old_val])
- old_val:*:new_val (interval [old_val, inf])
+old_low:old_high:new_low:new_high
+old_low:old_high:new_val (i.e. new_high == new_low)
+*:old_val:new_val (interval [inf, old_val])
+old_val:*:new_val (interval [old_val, inf])
</pre></div>
<p><em>r.recode</em> is loosely based
@@ -52,7 +52,7 @@
would use the first argument. For example
<div class="code"><pre>
- 10:1500:0.1:15.0
+10:1500:0.1:15.0
</pre></div>
would convert an input raster map with range between 10 and 1500 to a
@@ -65,10 +65,10 @@
values 1, 2 and 3 are replaced by 1.1, 7.5 resp. 0.4:
<div class="code"><pre>
-r.recode input=oldmap output=newmap << EOF
- 1:1:1.1:1.1
- 2:2:7.5:7.5
- 3:3:0.4:0.4
+r.recode input=oldmap output=newmap rules=- << EOF
+1:1:1.1:1.1
+2:2:7.5:7.5
+3:3:0.4:0.4
EOF
</pre></div>
More information about the grass-commit
mailing list