Rev | Line | |
---|
[6597] | 1 | """ |
---|
| 2 | Generate time series of nominated "gauges". |
---|
| 3 | Input: sww file from run_perth.py |
---|
| 4 | gauges project.gauge_filename |
---|
| 5 | Output: csv files stage,speed,depth,elevation over time |
---|
| 6 | Stored in the 'outputs_dir' folder for respective .sww file |
---|
| 7 | |
---|
| 8 | Note: |
---|
| 9 | Can run different sww files at the same time |
---|
| 10 | make sure if there is a second sww file that it is placed into a folder called sww2 |
---|
| 11 | Can run different gauges at the same time - ie testing boundary index point |
---|
| 12 | """ |
---|
| 13 | |
---|
| 14 | from os import sep, rename, listdir, system |
---|
| 15 | from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges,csv2timeseries_graphs |
---|
| 16 | import project |
---|
| 17 | |
---|
| 18 | directory = project.output_folder |
---|
| 19 | |
---|
[7369] | 20 | time_dir1 = '20090529_143527_run_final_0.0_51424_jgriffin' |
---|
| 21 | #time_dir2 = '20090529_143442_run_final_0.0_51347_jgriffin' |
---|
[6597] | 22 | |
---|
[7369] | 23 | time_dirs = [time_dir1]#, time_dir2] |
---|
[6597] | 24 | |
---|
| 25 | |
---|
| 26 | for time_dir in time_dirs: |
---|
| 27 | name = directory+sep+time_dir+sep+project.scenario_name |
---|
| 28 | gauge = project.gauges |
---|
| 29 | sww2csv_gauges(name+'.sww',gauge, |
---|
[7132] | 30 | quantities = ['stage','speed','depth'], |
---|
[6597] | 31 | verbose=True) |
---|
| 32 | |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.