1 | """ |
---|
2 | Generate time series of nominated "gauges" read from project.gauge_filename. This |
---|
3 | is done by first running sww2csv_gauges on two different directories to make |
---|
4 | 'csv' files. Then running csv2timeseries_graphs detailing the two directories |
---|
5 | containing the csv file and produces one set of graphs in the 'output_dir' containing |
---|
6 | the details at the gauges for both these sww files. |
---|
7 | |
---|
8 | Note, this script will only work if pylab is installed on the platform |
---|
9 | |
---|
10 | """ |
---|
11 | |
---|
12 | from os import sep |
---|
13 | from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges,csv2timeseries_graphs |
---|
14 | |
---|
15 | import project_truescale |
---|
16 | |
---|
17 | #timestamp='20080617_001810_run_leharne' |
---|
18 | #timestamp='20080617_041810_run_original_no_int_polygons_lfountai' |
---|
19 | #timestamp='20080617_040837_run_half_lfountai' |
---|
20 | #timestamp='20080617_041356_run_double_lfountai' |
---|
21 | #timestamp='20080708_064714_run_original_contour_polygons_lfountai' |
---|
22 | #timestamp='20080708_064815_run_half_contour_polygons_lfountai' |
---|
23 | #timestamp='20080708_064841_run_double_contour_polygons_lfountai' |
---|
24 | #timestamp='20080714_231759_run_quarter_contour_polygons_lfountai' |
---|
25 | #timestamp='20080714_234934_run_eighth_contour_polygons_lfountai' |
---|
26 | #timestamp='20080714_235634_run_sixteenth_contour_polygons_lfountai' |
---|
27 | #timestamp='20080715_015727_run_1-32_contour_polygons_lfountai' |
---|
28 | #timestamp='20080715_023223_run_quadruple_contour_polygons_lfountai' |
---|
29 | #timestamp='20080721_015521_run_1-64_contour_polygons_lfountai' |
---|
30 | #timestamp='20080725_051221_run_octuple_contour_polygons_lfountai' |
---|
31 | timestamp='20080725_022934_run_1.5_contour_polygons_lfountai' |
---|
32 | |
---|
33 | |
---|
34 | filename=project_truescale.output_dir+timestamp+sep+project_truescale.output_filename |
---|
35 | |
---|
36 | sww2csv_gauges(filename, |
---|
37 | project_truescale.gauges_dir_name, |
---|
38 | quantities = ['stage','speed','depth','elevation'], |
---|
39 | verbose=True) |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|