source: anuga_work/production/mandurah_storm_surge_2009/add_header.py @ 7630

Last change on this file since 7630 was 7630, checked in by fountain, 13 years ago
File size: 704 bytes
Line 
1import os
2from os.path import join
3from anuga.lib.add_csv_header.add_csv_header import add_csv_header
4import project
5
6ENV_INUNDATIONHOME = 'INUNDATIONHOME'
7home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder
8state = 'western_australia'
9scenario_name = 'alby_waves'
10scenario_folder = 'mandurah_storm_surge_scenario_2009'
11original_data = 'anuga'
12source = 'topographies'
13#type = 'Bathymetric_LiDAR'
14file_list = project.point_filenames
15
16for file in file_list:
17        indir = os.path.join(home, state, scenario_folder, original_data, source) #, type)
18        infile = os.path.join(indir,file)
19        header_list = ['x', 'y', 'elevation']
20        add_csv_header(infile, header_list)
21
Note: See TracBrowser for help on using the repository browser.