source: anuga_work/production/bunbury_storm_surge_2009/add_header.py @ 7629

Last change on this file since 7629 was 7629, checked in by fountain, 13 years ago
File size: 773 bytes
Line 
1import os
2from os.path import join
3from anuga.lib.add_csv_header.add_csv_header import add_csv_header
4
5ENV_INUNDATIONHOME = 'INUNDATIONHOME'
6home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder
7state = 'western_australia'
8scenario_name = 'alby_coarse'
9scenario_folder = 'bunbury_storm_surge_scenario_2009'
10original_data = 'anuga'
11source = 'topographies'
12#type = 'Bathymetric_LiDAR'
13file_list = ['DPI5U1A02_01a.txt', 'DPI5U1A02_01b.txt', 'DPI5U1A02_01c.txt',
14                'DPI5U1A02_01d.txt', 'DPI5U1A02_01e.txt']
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.