[GRASS-SVN] r58063 - grass/trunk/raster/r.topmodel
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 19 16:00:27 PDT 2013
Author: hcho
Date: 2013-10-19 16:00:27 -0700 (Sat, 19 Oct 2013)
New Revision: 58063
Modified:
grass/trunk/raster/r.topmodel/misc.c
Log:
nsteps parameter fixed
Modified: grass/trunk/raster/r.topmodel/misc.c
===================================================================
--- grass/trunk/raster/r.topmodel/misc.c 2013-10-19 22:41:51 UTC (rev 58062)
+++ grass/trunk/raster/r.topmodel/misc.c 2013-10-19 23:00:27 UTC (rev 58063)
@@ -79,12 +79,12 @@
if (map.topidx) {
sprintf(input, "input=%s", map.topidx);
- sprintf(input, "nsteps=%d", misc.nidxclass);
sprintf(output, "output=%s", file.idxstats);
+ sprintf(nsteps, "nsteps=%d", misc.nidxclass);
- G_verbose_message("r.stats -Anc %s %s %s ...", input, nsteps, output);
+ G_verbose_message("r.stats -Anc %s %s %s ...", input, output, nsteps);
- if (G_spawn("r.stats", "r.stats", "-Anc", input, nsteps, output, NULL) != 0)
+ if (G_spawn("r.stats", "r.stats", "-Anc", input, output, nsteps, NULL) != 0)
G_fatal_error("r.stats failed");
}
}
More information about the grass-commit
mailing list