source:
trunk/anuga_case_studies_data/patong/polygons/clean.py
@
9479
Last change on this file since 9479 was 9135, checked in by , 11 years ago | |
---|---|
|
|
File size: 263 bytes |
Line | |
---|---|
1 | infid = open('buildings.csv') |
2 | outfid = open('buildings_clean.csv', 'w') |
3 | |
4 | for line in infid.readlines(): |
5 | fields = line.split(',') |
6 | if fields[2].strip() == '': |
7 | print line |
8 | else: |
9 | outfid.write(line) |
10 | |
11 | outfid.close() |
12 | infid.close() |
Note: See TracBrowser
for help on using the repository browser.