source: anuga_work/production/wollongong_2006/get_timeseries.py @ 7855

Last change on this file since 7855 was 4504, checked in by sexton, 18 years ago

minor change to inundation_damage + updates to damage scripts for all scenarios

File size: 1.6 KB
Line 
1"""
2Generate images of "gauges" for production run
3
4Inputs:
5
6production dirs: dictionary of production directories with a
7                 association to that simulation run, eg high tide,
8                 low tide and MSL.
9                   
10Outputs:
11
12* figures used for report stored in the report_figure directory
13
14"""
15from os import getcwd, sep, altsep, mkdir, access, F_OK
16import project_slide
17from anuga.abstract_2d_finite_volumes.util import sww2timeseries
18
19# bulli event
20production_dirs = {'20070213_035110': 'Bulli'}
21
22swwfiles = {}   
23for label_id in production_dirs.keys():
24   
25    file_loc = project_slide.outputdir + label_id + sep
26    swwfile = file_loc + project_slide.basename + '.sww'
27    swwfiles[swwfile] = label_id
28       
29    texname, elev_output = sww2timeseries(swwfiles,
30                                          project_slide.gauge_filename,
31                                          production_dirs,
32                                          report = False,
33                                          plot_quantity = ['stage', 'speed'],
34                                          generate_fig = True,
35                                          surface = False,
36                                          time_min = None,
37                                          time_max = None,
38                                          time_unit = 'mins',
39                                          title_on = False,
40                                          use_cache = True,
41                                          verbose = True)
42                                     
Note: See TracBrowser for help on using the repository browser.