[GRASS-SVN] r58765 - grass/trunk/raster/r.mapcalc

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 22 10:58:40 PST 2014


Author: wenzeslaus
Date: 2014-01-22 10:58:40 -0800 (Wed, 22 Jan 2014)
New Revision: 58765

Modified:
   grass/trunk/raster/r.mapcalc/r.mapcalc.html
Log:
r.mapcalc: add note about eval function variables and existing maps

Modified: grass/trunk/raster/r.mapcalc/r.mapcalc.html
===================================================================
--- grass/trunk/raster/r.mapcalc/r.mapcalc.html	2014-01-22 17:19:28 UTC (rev 58764)
+++ grass/trunk/raster/r.mapcalc/r.mapcalc.html	2014-01-22 18:58:40 UTC (rev 58765)
@@ -579,6 +579,17 @@
 </pre></div>
 This example uses unix-like <tt><< EOF</tt> syntax to provide
 input to <em>r.mapcalc</em>.
+<p>
+Note that the temporary variables (maps) are not created
+and thus it does not matter whether they exists or not.
+In the example above, if map <tt>elev_200</tt> exists it will not be
+overwritten and no error will be generated.
+The reason is that the name <tt>elev_200</tt> now denotes the temporary
+variable (map) and not the existing map.
+The following parts of the expression will use the temporary <tt>elev_200</tt>
+and the existing <tt>elev_200</tt> will be left intact and will not be used.
+If a user want to use the existing map, the name of the temporary variable
+(map) must be changed.
 
 <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