[GRASS-SVN] r72713 - grass/trunk/temporal/t.rast.what

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 16 01:07:57 PDT 2018


Author: sbl
Date: 2018-05-16 01:07:57 -0700 (Wed, 16 May 2018)
New Revision: 72713

Modified:
   grass/trunk/temporal/t.rast.what/t.rast.what.py
Log:
remove empty header and column in timerow output; see #3546

Modified: grass/trunk/temporal/t.rast.what/t.rast.what.py
===================================================================
--- grass/trunk/temporal/t.rast.what/t.rast.what.py	2018-05-15 04:28:10 UTC (rev 72712)
+++ grass/trunk/temporal/t.rast.what/t.rast.what.py	2018-05-16 08:07:57 UTC (rev 72713)
@@ -509,13 +509,17 @@
                 else:
                     matrix.append(cols[:2])
 
-            matrix[i] = matrix[i] + cols[3:]
+            if vcat:
+                matrix[i] = matrix[i] + cols[4:]
+            else:
+                matrix[i] = matrix[i] + cols[3:]
 
         first = False
 
         in_file.close()
 
-    out_file.write(header + "\n")
+    if write_header:
+        out_file.write(header + "\n")
 
     gscript.verbose(_("Writing the output file <%s>"%(output)))
     for row in matrix:



More information about the grass-commit mailing list