[GRASS-SVN] r74009 - grass-addons/grass7/imagery/i.wi

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 23 06:52:21 PST 2019


Author: veroandreo
Date: 2019-01-23 06:52:21 -0800 (Wed, 23 Jan 2019)
New Revision: 74009

Modified:
   grass-addons/grass7/imagery/i.wi/main.c
Log:
i.wi: fix required channel in ndwi_x

Modified: grass-addons/grass7/imagery/i.wi/main.c
===================================================================
--- grass-addons/grass7/imagery/i.wi/main.c	2019-01-22 22:37:24 UTC (rev 74008)
+++ grass-addons/grass7/imagery/i.wi/main.c	2019-01-23 14:52:21 UTC (rev 74009)
@@ -173,7 +173,7 @@
                 || !(opt.green->answer)) )
         G_fatal_error(_("ndwi_mf requires green, nir maps"));
 
-    if (!strcasecmp(wiflag, "ndwi_x") && (!(opt.nir->answer)
+    if (!strcasecmp(wiflag, "ndwi_x") && (!(opt.chan5->answer)
                 || !(opt.green->answer)) )
         G_fatal_error(_("ndwi_x requires green, chan5 maps"));
 



More information about the grass-commit mailing list