Last change
on this file since 4856 was
4856,
checked in by sexton, 17 years ago
|
rename plot_polygons_points to original name of plot_polygons
|
File size:
1.7 KB
|
Line | |
---|
1 | """ |
---|
2 | Generate time series of nominated "gauges" |
---|
3 | Note, this script will only work if pylab is installed on the platform |
---|
4 | |
---|
5 | Inputs: |
---|
6 | |
---|
7 | production dirs: dictionary of production directories with a |
---|
8 | association to that simulation run, eg high tide, |
---|
9 | magnitude, etc. |
---|
10 | |
---|
11 | Outputs: |
---|
12 | |
---|
13 | * figures stored in same directory as sww file |
---|
14 | * time series data stored in csv files in same directory as sww file |
---|
15 | * elevation at nominated gauges (elev_output) |
---|
16 | """ |
---|
17 | |
---|
18 | from os import getcwd, sep, altsep, mkdir, access, F_OK |
---|
19 | import project |
---|
20 | from anuga.abstract_2d_finite_volumes.util import sww2timeseries |
---|
21 | |
---|
22 | # nominate directory location of sww file with associated attribute |
---|
23 | production_dirs = {#'slide': 'Slide', |
---|
24 | 'fixed_wave': 'Fixed Wave'} |
---|
25 | |
---|
26 | # Generate figures |
---|
27 | swwfiles = {} |
---|
28 | for label_id in production_dirs.keys(): |
---|
29 | file_loc = label_id + sep |
---|
30 | swwfile = file_loc + label_id + 'source.sww' |
---|
31 | swwfiles[swwfile] = label_id |
---|
32 | |
---|
33 | texname, elev_output = sww2timeseries(swwfiles, |
---|
34 | project.gauge_filename, |
---|
35 | production_dirs, |
---|
36 | report = False, |
---|
37 | reportname = '', |
---|
38 | plot_quantity = ['stage', 'speed'], |
---|
39 | generate_fig = False, |
---|
40 | surface = False, |
---|
41 | time_min = None, |
---|
42 | time_max = None, |
---|
43 | title_on = True, |
---|
44 | verbose = True) |
---|
Note: See
TracBrowser
for help on using the repository browser.