[GRASS-SVN] r63372 - grass/branches/releasebranch_7_0/scripts/i.tasscap

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 4 23:10:58 PST 2014


Author: neteler
Date: 2014-12-04 23:10:57 -0800 (Thu, 04 Dec 2014)
New Revision: 63372

Modified:
   grass/branches/releasebranch_7_0/scripts/i.tasscap/i.tasscap.py
Log:
i.tasscap: fix calc for Landsat8

Modified: grass/branches/releasebranch_7_0/scripts/i.tasscap/i.tasscap.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/i.tasscap/i.tasscap.py	2014-12-05 07:09:47 UTC (rev 63371)
+++ grass/branches/releasebranch_7_0/scripts/i.tasscap/i.tasscap.py	2014-12-05 07:10:57 UTC (rev 63372)
@@ -91,7 +91,7 @@
     grass.run_command('r.colors', map = out, color = 'grey')
 
 def calcN(outpre, bands, i, n):
-    grass.message(_("Satellite band-%d...") % n)
+    grass.message(_("Landsat-%d...") % n)
     for j, p in enumerate(parms[i]):
 	out = "%s.%d" % (outpre, j + 1)
 	ord = ordinals[j]
@@ -129,7 +129,7 @@
     elif satellite == 'landsat7_etm':
         calcN(output_basename, bands, 2, 7)
     elif satellite == 'landsat8':
-        calcN(output_basename, bands, 2, 7)
+        calcN(output_basename, bands, 3, 8)
     else:
         raise RuntimeError("Invalid satellite: " + satellite)
 



More information about the grass-commit mailing list