[GRASS-SVN] r69954 - grass-addons/grass7/raster/r.series.lwr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 30 07:18:00 PST 2016


Author: mmetz
Date: 2016-11-30 07:18:00 -0800 (Wed, 30 Nov 2016)
New Revision: 69954

Modified:
   grass-addons/grass7/raster/r.series.lwr/main.c
Log:
r.series.lwr: fix -i flag

Modified: grass-addons/grass7/raster/r.series.lwr/main.c
===================================================================
--- grass-addons/grass7/raster/r.series.lwr/main.c	2016-11-30 13:33:13 UTC (rev 69953)
+++ grass-addons/grass7/raster/r.series.lwr/main.c	2016-11-30 15:18:00 UTC (rev 69954)
@@ -598,6 +598,12 @@
 		first = 0;
 		last = num_inputs - 1;
 	    }
+	    else {
+		for (i = 0; i < first; i++)
+		    Rast_set_d_null_value(&outputs[i].buf[col], 1);
+		for (i = last + 1; i < num_inputs; i++)
+		    Rast_set_d_null_value(&outputs[i].buf[col], 1);
+	    }
 
 	    /* LWR */
 	    if (num_inputs - n_nulls >= min_points) {



More information about the grass-commit mailing list