Last change
on this file since 3159 was
3132,
checked in by sexton, 19 years ago
|
stripped down version of timeseries generation
|
File size:
977 bytes
|
Rev | Line | |
---|
[2815] | 1 | """ Script for generating figures, see sww2timeseries for documentation""" |
---|
[2798] | 2 | |
---|
| 3 | from pyvolution.util import sww2timeseries |
---|
| 4 | import project |
---|
| 5 | from os import sep |
---|
| 6 | |
---|
| 7 | # define directory location of sww and gauge data |
---|
[3132] | 8 | production_dirs = {'20060426_004129': '1.5 AHD', |
---|
| 9 | '20060426_004237': '-1.5 AHD', |
---|
| 10 | '20060515_001733': '0 AHD'} |
---|
[2798] | 11 | |
---|
[3132] | 12 | for label_id in production_dirs.keys(): |
---|
| 13 | |
---|
| 14 | file_loc = project.outputdir + label_id + sep |
---|
| 15 | swwfile = file_loc + project.basename + '.sww' |
---|
| 16 | swwfiles[swwfile] = label_id |
---|
| 17 | |
---|
[2798] | 18 | # generate figures - see sww2timeseries for documentation |
---|
[3132] | 19 | sww2timeseries(swwfiles, |
---|
| 20 | project.gauge_filename, |
---|
| 21 | production_dirs, |
---|
| 22 | report = False, |
---|
| 23 | plot_quantity = ['stage', 'speed'], |
---|
| 24 | time_min = None, |
---|
| 25 | time_max = None, |
---|
| 26 | title_on = False, |
---|
| 27 | verbose = True) |
---|
[2798] | 28 | |
---|
| 29 | print 'finished plotting time series' |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
[2815] | 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.