source: anuga_work/production/australia_ph2/dampier/get_timeseries.py @ 6217

Last change on this file since 6217 was 6217, checked in by kristy, 15 years ago

updated scripts, new poly_all (no land)

File size: 1.7 KB
Line 
1"""
2Generate time series of nominated "gauges".
3Input: sww file from run_perth.py
4       gauges project_250m.gauge_filename
5Output: csv files stage,speed,depth,elevation over time
6Stored in the 'outputs_dir' folder for respective .sww file
7
8Note:
9Can run different sww files at the same time
10make sure if there is a second sww file that it is placed into a folder called sww2
11Can run different gauges at the same time - ie testing boundary index point
12"""
13
14from os import sep, rename, listdir, system
15from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges,csv2timeseries_graphs
16import project_250m
17
18directory = project_250m.output_dir
19
20time_dir1 = '20090115_151520_run_final_0_250m_kvanputt'
21time_dir2 = '20090115_164756_run_final_0_250m_small_kvanputt'
22
23time_dirs = [time_dir1, time_dir2]
24
25for time_dir in time_dirs:
26    name = directory+time_dir+sep+project_250m.scenario_name
27    gauge = project_250m.gauges_dir_name
28    sww2csv_gauges(name+'.sww',gauge,
29                   quantities = ['stage','speed','depth','elevation'],
30                   verbose=True)
31
32   
33##    name1 = directory+time_dir+sep+project_250m.scenario_name
34####    name2 = directory+time_dir+sep+project_250m.scenario_name+'_time_43380_0'
35####    name3 = directory+time_dir+sep+project_250m.scenario_name+'_time_78360_0'
36##
37##    names = [name1]#, name2, name3]
38##
39##    for i, name in enumerate(names):
40##        gauge = project_250m.gauges_dir_name
41####        out_name = 'gauge_%d_' % i
42##        print name
43##        sww2csv_gauges(name+'.sww',gauge,#out_name = out_name,
44##                        quantities = ['stage','speed','depth','elevation'],
45##                        verbose=True)
46##
Note: See TracBrowser for help on using the repository browser.