source: anuga_work/development/continental_margin_0708/shelftimeseries.py @ 5599

Last change on this file since 5599 was 5066, checked in by sexton, 16 years ago
File size: 1.6 KB
Line 
1
2from os import getcwd, sep, altsep, mkdir, access, F_OK, remove
3from anuga.abstract_2d_finite_volumes.util import sww2timeseries
4
5name = 'wave_value_tester_1800a'
6shelf = [300000]
7slope = [150000]
8wave = [0.25]
9output_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
11production_dirs = {output_dir: str(name)}
12
13# Generate figures
14swwfiles = {}
15for 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
20texname, 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)
33print (output_dir+sep+str(name)+'.sww')
34remove(output_dir+sep+'unwanted'+'.sww')
35
36
37
Note: See TracBrowser for help on using the repository browser.