source: anuga_work/production/FSM/changeformat.py @ 5205

Last change on this file since 5205 was 5205, checked in by herve, 16 years ago
File size: 391 bytes
Line 
1import os
2import sys
3os.chdir('E:/')
4polyline_file = open('Copy of LIDAR KOLONIA_REDUCED_5m.txt','r')
5lines=polyline_file.readlines()
6polyline_file.close()
7
8B=open('lidar_data_5m.txt','w')
9for 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)
16B.close()
Note: See TracBrowser for help on using the repository browser.