Last change
on this file since 3339 was
3338,
checked in by sexton, 19 years ago
|
compare timer series 4 different data sets
|
File size:
1.6 KB
|
Line | |
---|
1 | """ |
---|
2 | Generate latex output comparing time series of given sww files |
---|
3 | |
---|
4 | Inputs: |
---|
5 | |
---|
6 | output dirs: dictionary of output directories with a |
---|
7 | association to simulation, eg 50m boundary, 100m boundary |
---|
8 | |
---|
9 | Outputs: |
---|
10 | |
---|
11 | * latex output to generate figures for report |
---|
12 | * figures used for report stored in the report_figure directory |
---|
13 | NOTE, this directory will need to be committed, as well as |
---|
14 | the latex files. |
---|
15 | |
---|
16 | June 2006 |
---|
17 | """ |
---|
18 | |
---|
19 | from os import sep |
---|
20 | import project |
---|
21 | from pyvolution.util import sww2timeseries, get_gauges_from_file |
---|
22 | |
---|
23 | # User defined inputs |
---|
24 | |
---|
25 | # for comparison between DTED and WA DLI data |
---|
26 | production_dirs = {'20060515_001733': 'DTED', |
---|
27 | '20060704_063234': 'WA DLI'} |
---|
28 | |
---|
29 | plot_quantity = ['stage', 'speed'] |
---|
30 | |
---|
31 | # Create sections and graphs for each designated production directory |
---|
32 | latex_output = [] |
---|
33 | swwfiles = {} |
---|
34 | for label_id in production_dirs.keys(): |
---|
35 | |
---|
36 | file_loc = project.outputdir + label_id + sep |
---|
37 | swwfile = file_loc + project.basename + '.sww' |
---|
38 | swwfiles[swwfile] = label_id |
---|
39 | |
---|
40 | texname, vec = sww2timeseries(swwfiles, |
---|
41 | project.gauge_filename, |
---|
42 | production_dirs, |
---|
43 | report = True, |
---|
44 | reportname = 'compare_output_datasets', |
---|
45 | surface = False, |
---|
46 | plot_quantity = plot_quantity, |
---|
47 | time_min = None, |
---|
48 | time_max = None, |
---|
49 | title_on = False, |
---|
50 | verbose = True) |
---|
51 | |
---|
52 | latex_output.append(texname) |
---|
Note: See
TracBrowser
for help on using the repository browser.