Rev | Line | |
---|
[5066] | 1 | |
---|
| 2 | from os import getcwd, sep, altsep, mkdir, access, F_OK, remove |
---|
| 3 | from anuga.abstract_2d_finite_volumes.util import sww2timeseries |
---|
| 4 | |
---|
| 5 | name = 'wave_value_tester_1800a' |
---|
| 6 | shelf = [300000] |
---|
| 7 | slope = [150000] |
---|
| 8 | wave = [0.25] |
---|
| 9 | output_dir = sep+'d'+sep+'sim'+sep+'1'+sep+'mpittard'+sep+'idealised_bathymetry_study'+sep+'wave_value_testers'+sep+str(name)+'_0.25_300000_150000'+sep |
---|
| 10 | # nominate directory location of sww file with associated attribute |
---|
| 11 | production_dirs = {output_dir: str(name)} |
---|
| 12 | |
---|
| 13 | # Generate figures |
---|
| 14 | swwfiles = {} |
---|
| 15 | for label_id in production_dirs.keys(): |
---|
| 16 | file_loc = label_id |
---|
| 17 | swwfile = file_loc + str(name)+'.sww' |
---|
| 18 | swwfiles[swwfile] = label_id |
---|
| 19 | print 'hello', swwfile |
---|
| 20 | texname, elev_output = sww2timeseries(swwfiles, |
---|
| 21 | sep+'d'+sep+'sim'+sep+'1'+sep+'mpittard'+sep+'anuga'+sep+'anuga_work'+sep+'development'+sep+'idealised_bathymetry_study'+sep+'continental_shelves'+sep+'gauges.csv', |
---|
| 22 | production_dirs, |
---|
| 23 | report = False, |
---|
| 24 | reportname = '', |
---|
| 25 | plot_quantity = ['stage', 'speed'], |
---|
| 26 | generate_fig = False, |
---|
| 27 | surface = False, |
---|
| 28 | time_min = None, |
---|
| 29 | time_max = None, |
---|
| 30 | #time_unit = 'secs', |
---|
| 31 | title_on = True, |
---|
| 32 | verbose = True) |
---|
| 33 | print (output_dir+sep+str(name)+'.sww') |
---|
| 34 | remove(output_dir+sep+'unwanted'+'.sww') |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.