Last change
on this file since 7244 was
5572,
checked in by bridgette, 17 years ago
|
update script for bridgettes use
|
File size:
946 bytes
|
Rev | Line | |
---|
[5572] | 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 |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | timestamp='20080725_143146_run_finaltime500_blewis' |
---|
| 19 | |
---|
| 20 | filename=project.output_dir+timestamp+sep+project.sww_name+'.sww' |
---|
| 21 | print 'Hello', filename |
---|
| 22 | |
---|
| 23 | sww2csv_gauges(filename, |
---|
| 24 | project.gauges_dir_name, |
---|
| 25 | quantities = ['stage','speed','depth','elevation'], |
---|
| 26 | verbose=True) |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.