[GRASS-SVN] r36146 - grass/trunk/raster/r.topmodel

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 1 00:56:41 EST 2009


Author: hamish
Date: 2009-03-01 00:56:41 -0500 (Sun, 01 Mar 2009)
New Revision: 36146

Modified:
   grass/trunk/raster/r.topmodel/misc.c
Log:
use expr= for r.mapcalc in gr7

Modified: grass/trunk/raster/r.topmodel/misc.c
===================================================================
--- grass/trunk/raster/r.topmodel/misc.c	2009-03-01 05:51:59 UTC (rev 36145)
+++ grass/trunk/raster/r.topmodel/misc.c	2009-03-01 05:56:41 UTC (rev 36146)
@@ -68,7 +68,7 @@
 void basin_elevation(void)
 {
     char buf[GPATH_MAX];
-    sprintf(buf, "r.mapcalc '%s = if(%s == 0 || isnull(%s), null(), %s)' --quiet",
+    sprintf(buf, "r.mapcalc expression='%s = if(%s == 0 || isnull(%s), null(), %s)' --quiet",
 	    map.belev, map.basin, map.basin, map.elev);
     G_message("r.mapcalc '%s = if(%s == 0 || isnull(%s), null(), %s)'"
 	      " ... ", map.belev, map.basin, map.basin, map.elev);



More information about the grass-commit mailing list