@@ -1553,11 +1553,11 @@ def remove_stns_sinex(sinex, sites):
15531553 for line in site_id :
15541554 if line .startswith ('*' ) or line .startswith ('+' ) or \
15551555 line .startswith ('-' ):
1556- out .write (line )
1556+ out .write (f" { line } \n " )
15571557 else :
15581558 site = line [1 :5 ]
15591559 if site not in sites :
1560- out .write (line )
1560+ out .write (f" { line } \n " )
15611561 del site_id
15621562
15631563 out .write ("*-------------------------------------------------------------------------------\n " )
@@ -1568,11 +1568,11 @@ def remove_stns_sinex(sinex, sites):
15681568 for line in solution_epochs :
15691569 if line .startswith ('*' ) or line .startswith ('+' ) or \
15701570 line .startswith ('-' ):
1571- out .write (line )
1571+ out .write (f" { line } \n " )
15721572 else :
15731573 site = line [1 :5 ]
15741574 if site not in sites :
1575- out .write (line )
1575+ out .write (f" { line } \n " )
15761576 del solution_epochs
15771577
15781578 out .write ("*-------------------------------------------------------------------------------\n " )
@@ -1585,7 +1585,7 @@ def remove_stns_sinex(sinex, sites):
15851585 for line in solution_estimate :
15861586 if line .startswith ('*' ) or line .startswith ('+' ) or \
15871587 line .startswith ('-' ):
1588- out .write (line )
1588+ out .write (f" { line } \n " )
15891589 else :
15901590 site = line [14 :18 ]
15911591 if site in sites :
@@ -1595,7 +1595,7 @@ def remove_stns_sinex(sinex, sites):
15951595 estimate_number += 1
15961596 number = '{:5d}' .format (estimate_number )
15971597 line = ' ' + number + line [6 :]
1598- out .write (line )
1598+ out .write (f" { line } \n " )
15991599 del solution_estimate
16001600
16011601 out .write ("*-------------------------------------------------------------------------------\n " )
@@ -1609,9 +1609,9 @@ def remove_stns_sinex(sinex, sites):
16091609 matrix = 'lower'
16101610 elif solution_matrix_estimate [0 ][26 :27 ] == 'U' :
16111611 matrix = 'upper'
1612- out .write (solution_matrix_estimate [0 ])
1612+ out .write (f" { solution_matrix_estimate [0 ]} \n " )
16131613 if solution_matrix_estimate [1 ].startswith ('*' ):
1614- out .write (solution_matrix_estimate [1 ])
1614+ out .write (f" { solution_matrix_estimate [1 ]} \n " )
16151615 for line in solution_matrix_estimate :
16161616 if line .startswith (' ' ):
16171617 cols = line .split ()
@@ -1715,7 +1715,7 @@ def remove_velocity_sinex(sinex):
17151715 # Read in the +SITE/ID block and write to file
17161716 site_id = read_sinex_site_id_block (sinex )
17171717 for line in site_id :
1718- out .write (f"{ line } " )
1718+ out .write (f"{ line } \n " )
17191719 del site_id
17201720
17211721 out .write ("*-------------------------------------------------------------------------------\n " )
@@ -1725,7 +1725,7 @@ def remove_velocity_sinex(sinex):
17251725 numSites = 0
17261726 solution_epochs = read_sinex_solution_epochs_block (sinex )
17271727 for line in solution_epochs :
1728- out .write (f"{ line } " )
1728+ out .write (f"{ line } \n " )
17291729 if line [0 ]!= "+" and line [0 ]!= "*" and line [0 ]!= "-" :
17301730 numSites += 1
17311731 del solution_epochs
@@ -1744,12 +1744,12 @@ def remove_velocity_sinex(sinex):
17441744 if line [7 :10 ]== "VEL" :
17451745 vel_indices .append (int (line [0 :6 ]))
17461746 elif line [0 ]== "+" or line [0 ]== "*" or line [0 ]== "-" :
1747- out .write (f"{ line } " )
1747+ out .write (f"{ line } \n " )
17481748 else :
17491749 estimate_number += 1
17501750 number = '{:5d}' .format (estimate_number )
17511751 line = ' ' + number + line [6 :]
1752- out .write (f"{ line } " )
1752+ out .write (f"{ line } \n " )
17531753 del solution_estimate
17541754
17551755 out .write ("*-------------------------------------------------------------------------------\n " )
@@ -1771,10 +1771,10 @@ def remove_velocity_sinex(sinex):
17711771 # Write initial comment line(s), save last comment line, and form matrix
17721772 for line in solution_matrix_estimate :
17731773 if line [0 ]== "+" :
1774- out .write (f"{ line } " )
1774+ out .write (f"{ line } \n " )
17751775 continue
17761776 if line [0 ]== "*" :
1777- out .write (f"{ line } " )
1777+ out .write (f"{ line } \n " )
17781778 continue
17791779 if line [0 ]== "-" :
17801780 block_end = line
@@ -1876,23 +1876,23 @@ def remove_matrixzeros_sinex(sinex):
18761876 # Read in the +SITE/ID block and write to file
18771877 site_id = read_sinex_site_id_block (sinex )
18781878 for line in site_id :
1879- out .write (f"{ line } " )
1879+ out .write (f"{ line } \n " )
18801880 del site_id
18811881
18821882 out .write ("*-------------------------------------------------------------------------------\n " )
18831883
18841884 # Read in the +SOLUTION/EPOCHS block and write to file
18851885 solution_epochs = read_sinex_solution_epochs_block (sinex )
18861886 for line in solution_epochs :
1887- out .write (f"{ line } " )
1887+ out .write (f"{ line } \n " )
18881888 del solution_epochs
18891889
18901890 out .write ("*-------------------------------------------------------------------------------\n " )
18911891
18921892 # Read in the +SOLUTION/ESTIMATE block
18931893 solution_estimate = read_sinex_solution_estimate_block (sinex )
18941894 for line in solution_estimate :
1895- out .write (f"{ line } " )
1895+ out .write (f"{ line } \n " )
18961896 del solution_estimate
18971897
18981898 out .write ("*-------------------------------------------------------------------------------\n " )
0 commit comments