Browse Source

remove empty header and column in timerow output; see https://trac.osgeo.org/grass/ticket/3546

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72713 15284696-431f-4ddb-bdfa-cd5b030d7da7
Stefan Blumentrath 7 years ago
parent
commit
7440cedea7
1 changed files with 6 additions and 2 deletions
  1. 6 2
      temporal/t.rast.what/t.rast.what.py

+ 6 - 2
temporal/t.rast.what/t.rast.what.py

@@ -509,13 +509,17 @@ def one_point_per_timerow_output(separator, output_files, output_time_list,
                 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: