source: anuga_work/production/wa/onslow_2006/get_timeseries.py @ 7855

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

minor updates for gauge names plus plotting files

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
17import project_urs
18from anuga.abstract_2d_finite_volumes.util import sww2timeseries
19
20#
21production_dirs = {'20070608_062811_run_final_1.5_exmouth_nbartzis': ''}
22
23swwfiles = {}   
24for label_id in production_dirs.keys():
25   
26    file_loc = project.outputdir + label_id + sep
27    swwfile = file_loc + project_urs.scenario_name + '.sww'
28    swwfiles[swwfile] = label_id
29       
30    texname, elev_output = sww2timeseries(swwfiles,
31                                          project.td_gauges,
32                                          production_dirs,
33                                          report = False,
34                                          plot_quantity = ['stage', 'speed', 'momentum'],
35                                          generate_fig = True,
36                                          surface = False,
37                                          time_min = None,
38                                          time_max = None,
39                                          time_unit = 'hours',
40                                          title_on = False,
41                                          use_cache = True,
42                                          verbose = True)
43                                     
Note: See TracBrowser for help on using the repository browser.