[GRASS-SVN] r36147 - grass/branches/develbranch_6/raster/r.topmodel
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 1 01:00:48 EST 2009
Author: hamish
Date: 2009-03-01 01:00:47 -0500 (Sun, 01 Mar 2009)
New Revision: 36147
Modified:
grass/branches/develbranch_6/raster/r.topmodel/misc.c
Log:
r.mapcalc in grass6 doesn't know --quiet
Modified: grass/branches/develbranch_6/raster/r.topmodel/misc.c
===================================================================
--- grass/branches/develbranch_6/raster/r.topmodel/misc.c 2009-03-01 05:56:41 UTC (rev 36146)
+++ grass/branches/develbranch_6/raster/r.topmodel/misc.c 2009-03-01 06:00:47 UTC (rev 36147)
@@ -66,9 +66,12 @@
void basin_elevation(void)
{
+ /* be quiet */
+/* G_putenv("GRASS_VERBOSE", "0"); how to unset in a cross-platform way afterwards? */
sprintf(buf, "%s/bin/r.mapcalc "
- "'%s = if(%s == 0 || isnull(%s), null(), %s)' --quiet",
+ "'%s = if(%s == 0 || isnull(%s), null(), %s)'",
gisbase, 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