[GRASS-SVN] r67789 - grass/branches/releasebranch_7_0/raster/r.mapcalc

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 8 05:11:27 PST 2016


Author: neteler
Date: 2016-02-08 05:11:27 -0800 (Mon, 08 Feb 2016)
New Revision: 67789

Modified:
   grass/branches/releasebranch_7_0/raster/r.mapcalc/r.mapcalc.html
Log:
r.mapcalc manual: fix if() statement formula (trac #2883)

Modified: grass/branches/releasebranch_7_0/raster/r.mapcalc/r.mapcalc.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.mapcalc/r.mapcalc.html	2016-02-08 13:11:20 UTC (rev 67788)
+++ grass/branches/releasebranch_7_0/raster/r.mapcalc/r.mapcalc.html	2016-02-08 13:11:27 UTC (rev 67789)
@@ -646,9 +646,9 @@
 <div class="code"><pre>
 result = if(a,b)
 </pre></div>
-To change all values below 5 to NULL, keep otherwise:
+To change all values below 5 to NULL:
 <div class="code"><pre>
-newmap = if(map < 5, null(), map)
+newmap = if(map<5, null(), 5)
 </pre></div>
 The graph() function allows users to specify a x-y conversion using 
 pairs of x,y coordinates.



More information about the grass-commit mailing list