source:
anuga_work/production/FSM/changeformat.py
@
5370
Last change on this file since 5370 was 5205, checked in by , 17 years ago | |
---|---|
File size: 391 bytes |
Rev | Line | |
---|---|---|
[5205] | 1 | import os |
2 | import sys | |
3 | os.chdir('E:/') | |
4 | polyline_file = open('Copy of LIDAR KOLONIA_REDUCED_5m.txt','r') | |
5 | lines=polyline_file.readlines() | |
6 | polyline_file.close() | |
7 | ||
8 | B=open('lidar_data_5m.txt','w') | |
9 | for line in lines[0:]: | |
10 | field=line.split(' ') | |
11 | x=float(field[0]) | |
12 | y=float(field[1]) | |
13 | z=float(field[2]) | |
14 | s='%f,%f,%f\n' %(x,y,z) | |
15 | B.write(s) | |
16 | B.close() |
Note: See TracBrowser
for help on using the repository browser.