source: anuga_work/production/shark_bay_2007/get_timeseries.py @ 4856

Last change on this file since 4856 was 4856, checked in by sexton, 16 years ago

rename plot_polygons_points to original name of plot_polygons

File size: 5.4 KB
Line 
1""" Script for generating timeseries from the sww file representing
2the boundary condition for this location.
3
4This to check that arrival times and amplitudes etc are sane at the boundary.
5see sww2timeseries for documentation
6"""
7
8from anuga.abstract_2d_finite_volumes.util import sww2timeseries
9import project
10from os import sep
11
12production_dirs = {#'20070710_023849_run_final_-0.85_shark_bay_onielsen_10000_tide-0.85_coastpolys': 'LAT10000',
13                   #'20070710_001018_run_final_0.85_shark_bay_onielsen_10000_tide0.85_coastpolys': 'HAT10000'}
14                   #'20070710_001110_run_final_0.85_shark_bay_onielsen_july2006_tide0.85_coastpolys': 'HAT06',
15                   # 20070710_023824_run_final_-0.85_shark_bay_onielsen_july2006_tide-0.85_coastpolys': 'LAT06',
16                    #'20070712_001432_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T100': 'T100'}
17                    #'20070712_002232_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T200': 'T200'}
18                    #'20070712_002254_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T400': 'T400'}
19                    #'20070712_002317_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T800': 'T800'}
20                    #'20070712_002331_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T900': 'T900'}
21                    #'20070712_002526_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T1800': 'T1800'}
22                    #'20070712_002604_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T3600': 'T3600'}
23                    #'20070712_002625_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T7200': 'T7200'}
24                    #'20070712_003334_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T300': 'T300'}
25                    #'20070712_003400_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T500': 'T500'}
26                    #'20070712_003410_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T600': 'T600'}
27                    #'20070712_003421_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T700': 'T700'}
28                    #'20070712_003433_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T1000': 'T1000'}
29                    #'20070712_003443_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T1100': 'T1100'}
30                    #'20070712_003453_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T1200': 'T1200'}
31                    #'20070712_003527_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T1300': 'T1300'}
32                    #'20070712_003606_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T50': 'T50'}
33                    #'20070712_003616_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T25': 'T25'}
34                    #'20070712_003626_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T12': 'T12'}
35                    #'20070712_003638_run_final_0.0_shark_bay_onielsen_experimental_A0.5_T6': 'T6'}
36                    #'20070717_021240_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T1200': 'T1200new'}
37                    #'20070717_021545_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T1300': 'T1300new'}
38                    #'20070717_021601_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T1400': 'T1400new'}
39                    #'20070717_021615_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T1500': 'T1500new'}
40                    #'20070717_021646_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T1100': 'T1100new'}
41                    #'20070717_021656_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T1000': 'T1000new'}
42                    #'20070717_021707_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T900': 'T900new'}
43                    #'20070717_021717_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T800': 'T800new'}
44                    #'20070717_021750_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T700': 'T700new'}
45                    #'20070717_021801_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T600': 'T600new'}
46                    #'20070717_021814_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T300': 'T300new'}
47                    #'20070717_021831_run_final_0.79_shark_bay_onielsen_experimental_A0.5_T3000': 'T3000new'}
48                    #'20070716_025846_run_final_0.79_shark_bay_onielsen_july2006_X1_fixedbathy': '2006new'}
49                    #'20070713_033049_run_final_0.0_shark_bay_onielsen_july2006_X10_fixedbathy': '2006new10'}
50                    #'20070716_011226_run_final_0.0_shark_bay_onielsen_july2006_X50_fixedbathy': '2006new50'}
51                    '20070716_024711_run_final_0.79_shark_bay_onielsen_10000_X1_fixedbathy': '10000new'}
52                    #'': ''}
53
54swwfiles = {}   
55for label_id in production_dirs.keys():
56   
57    file_loc = project.output_dir + label_id + sep
58    swwfile = file_loc + project.scenario_name + '.sww'
59    swwfiles[swwfile] = label_id
60   
61    # generate figures - see sww2timeseries for documentation
62    texname = sww2timeseries(swwfiles,
63                             project.gauges_dir_name,
64                             production_dirs,
65                             report = False,
66                             plot_quantity = ['stage', 'speed'],
67                             generate_fig = False, 
68                             time_min = None,
69                             time_max = None,
70                             title_on = True,
71                             use_cache = True,
72                             verbose = True)
73
74print 'finished plotting time series'
75
Note: See TracBrowser for help on using the repository browser.