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

Last change on this file since 4689 was 4624, checked in by sexton, 17 years ago

export scripts for Shark Bay

File size: 3.7 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                    #'': ''}
37
38swwfiles = {}   
39for label_id in production_dirs.keys():
40   
41    file_loc = project.output_dir + label_id + sep
42    swwfile = file_loc + project.scenario_name + '.sww'
43    swwfiles[swwfile] = label_id
44   
45    # generate figures - see sww2timeseries for documentation
46    texname = sww2timeseries(swwfiles,
47                             project.gauges_dir_name,
48                             production_dirs,
49                             report = False,
50                             plot_quantity = ['stage', 'speed'],
51                             generate_fig = True, 
52                             time_min = None,
53                             time_max = None,
54                             title_on = True,
55                             use_cache = True,
56                             verbose = True)
57
58print 'finished plotting time series'
59
Note: See TracBrowser for help on using the repository browser.