Last change
on this file since 9205 was
9181,
checked in by steve, 10 years ago
|
added in a script to create arange of asc files (which can be read into qgis)
|
File size:
1.1 KB
|
Line | |
---|
1 | import os |
---|
2 | import sys |
---|
3 | import project |
---|
4 | |
---|
5 | import anuga |
---|
6 | |
---|
7 | scenario = 'fixed_wave' |
---|
8 | name = 'cairns_' + scenario |
---|
9 | |
---|
10 | print 'output dir:', name |
---|
11 | which_var = 0 |
---|
12 | |
---|
13 | if which_var == 0: # Stage |
---|
14 | outname = name + '_stage' |
---|
15 | quantityname = 'stage' |
---|
16 | |
---|
17 | if which_var == 1: # Absolute Momentum |
---|
18 | outname = name + '_momentum' |
---|
19 | quantityname = '(xmomentum**2 + ymomentum**2)**0.5' #Absolute momentum |
---|
20 | |
---|
21 | if which_var == 2: # Depth |
---|
22 | outname = name + '_depth' |
---|
23 | quantityname = 'stage-elevation' #Depth |
---|
24 | |
---|
25 | if which_var == 3: # Speed |
---|
26 | outname = name + '_speed' |
---|
27 | quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-3)' #Speed |
---|
28 | |
---|
29 | if which_var == 4: # Elevation |
---|
30 | outname = name + '_elevation' |
---|
31 | quantityname = 'elevation' #Elevation |
---|
32 | |
---|
33 | print 'start sww2dem' |
---|
34 | |
---|
35 | anuga.sww2dem(name+'.sww', |
---|
36 | outname+'.asc', |
---|
37 | quantity=quantityname, |
---|
38 | cellsize=100, |
---|
39 | #easting_min=project.eastingmin, |
---|
40 | #easting_max=project.eastingmax, |
---|
41 | #northing_min=project.northingmin, |
---|
42 | #northing_max=project.northingmax, |
---|
43 | reduction=max, |
---|
44 | verbose=True) |
---|
Note: See
TracBrowser
for help on using the repository browser.