[GRASS-SVN] r58764 - grass/trunk/raster/r.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 22 09:19:30 PST 2014
Author: wenzeslaus
Date: 2014-01-22 09:19:28 -0800 (Wed, 22 Jan 2014)
New Revision: 58764
Modified:
grass/trunk/raster/r.mapcalc/r.mapcalc.html
Log:
r.mapcalc: fix syntax in eval function example in manual, add note about EOF syntax
Modified: grass/trunk/raster/r.mapcalc/r.mapcalc.html
===================================================================
--- grass/trunk/raster/r.mapcalc/r.mapcalc.html 2014-01-22 15:37:42 UTC (rev 58763)
+++ grass/trunk/raster/r.mapcalc/r.mapcalc.html 2014-01-22 17:19:28 UTC (rev 58764)
@@ -570,13 +570,15 @@
but the expression is so complex that it is better to split it
to several expressions, the <tt>eval</tt> function can be used:
<div class="code"><pre>
-r.mapcalc >>EOF
+r.mapcalc << EOF
eval(elev_200 = elevation - 200, \
elev_5 = 5 * elevation, \
elev_p = pow(elev_5, 2))
elevation_result = (0.5 * elev_200) + 0.8 * elev_p
EOF
</pre></div>
+This example uses unix-like <tt><< EOF</tt> syntax to provide
+input to <em>r.mapcalc</em>.
<h3>Random number generator initialization</h3>
<p>The environment variable GRASS_RND_SEED is read to initialize the
More information about the grass-commit
mailing list