source: trunk/anuga_validation/circular_island/simple_circular/ExportResults.py @ 7877

Last change on this file since 7877 was 5443, checked in by kristy, 16 years ago
File size: 1.2 KB
Line 
1import circular, os
2import sys
3
4from anuga.shallow_water.data_manager import sww2dem
5from anuga.abstract_2d_finite_volumes.util import start_screen_catcher
6from os import sep
7
8name='circular'
9
10print 'output dir:', name
11
12which_var = 4
13
14if which_var == 0:  # Stage
15    outname = name + '_stage'
16    quantityname = 'stage'
17
18if which_var == 1:  # Absolute Momentum
19    outname = name + '_momentum'
20    quantityname = '(xmomentum**2 + ymomentum**2)**0.5'  #Absolute momentum
21
22if which_var == 2:  # Depth
23    outname = name + '_depth'
24    quantityname = 'stage-elevation'  #Depth
25
26if which_var == 3:  # Speed
27    outname = name + '_speed'
28    quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-30)'  #Speed
29
30if which_var == 4:  # Elevation
31    outname = name + '_elevation'
32    quantityname = 'elevation'  #Elevation
33
34print 'start sww2dem'
35
36sww2dem(name, basename_out = outname,
37            quantity = quantityname,
38            cellsize = 0.1,     
39##            easting_min = circular.xmin,
40##            easting_max = circular.xmax,
41##            northing_min = circular.ymin,
42##            northing_max = circular.ymax,       
43            reduction = max, 
44            verbose = True,
45            format = 'asc')
46
Note: See TracBrowser for help on using the repository browser.