[GRASS-SVN] r72789 - grass/trunk/raster/r.series
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 9 10:01:45 PDT 2018
Author: mmetz
Date: 2018-06-09 10:01:45 -0700 (Sat, 09 Jun 2018)
New Revision: 72789
Modified:
grass/trunk/raster/r.series/main.c
Log:
r.series: allow weight = 0
Modified: grass/trunk/raster/r.series/main.c
===================================================================
--- grass/trunk/raster/r.series/main.c 2018-06-09 17:00:00 UTC (rev 72788)
+++ grass/trunk/raster/r.series/main.c 2018-06-09 17:01:45 UTC (rev 72789)
@@ -246,7 +246,7 @@
if (ntokens > 1) {
weight = atof(G_chop(tokens[1]));
- if (weight <= 0)
+ if (weight < 0)
G_fatal_error(_("Weights must be positive"));
if (weight != 1)
@@ -308,7 +308,7 @@
if (num_weights) {
p->weight = (DCELL)atof(parm.weights->answers[i]);
- if (p->weight <= 0)
+ if (p->weight < 0)
G_fatal_error(_("Weights must be positive"));
if (p->weight != 1)
More information about the grass-commit
mailing list