Rev | Line | |
---|
[5443] | 1 | import circular, os |
---|
| 2 | import sys |
---|
| 3 | |
---|
| 4 | from anuga.shallow_water.data_manager import sww2dem |
---|
| 5 | from anuga.abstract_2d_finite_volumes.util import start_screen_catcher |
---|
| 6 | from os import sep |
---|
| 7 | |
---|
| 8 | name='circular' |
---|
| 9 | |
---|
| 10 | print 'output dir:', name |
---|
| 11 | |
---|
| 12 | which_var = 4 |
---|
| 13 | |
---|
| 14 | if which_var == 0: # Stage |
---|
| 15 | outname = name + '_stage' |
---|
| 16 | quantityname = 'stage' |
---|
| 17 | |
---|
| 18 | if which_var == 1: # Absolute Momentum |
---|
| 19 | outname = name + '_momentum' |
---|
| 20 | quantityname = '(xmomentum**2 + ymomentum**2)**0.5' #Absolute momentum |
---|
| 21 | |
---|
| 22 | if which_var == 2: # Depth |
---|
| 23 | outname = name + '_depth' |
---|
| 24 | quantityname = 'stage-elevation' #Depth |
---|
| 25 | |
---|
| 26 | if which_var == 3: # Speed |
---|
| 27 | outname = name + '_speed' |
---|
| 28 | quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-30)' #Speed |
---|
| 29 | |
---|
| 30 | if which_var == 4: # Elevation |
---|
| 31 | outname = name + '_elevation' |
---|
| 32 | quantityname = 'elevation' #Elevation |
---|
| 33 | |
---|
| 34 | print 'start sww2dem' |
---|
| 35 | |
---|
| 36 | sww2dem(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.