소스 검색

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 년 전
부모
커밋
7440cedea7
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  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: