Line | |
---|
1 | import project, os |
---|
2 | |
---|
3 | from pyvolution.data_manager import sww2dem |
---|
4 | from pyvolution.ermapper_grids import read_ermapper_grid |
---|
5 | |
---|
6 | |
---|
7 | #name = project.outputname + '_0.0tide_notsunami' |
---|
8 | #name = project.outputname + '_0.0tide' |
---|
9 | |
---|
10 | name = project.outputname |
---|
11 | |
---|
12 | #sww2dem(name, basename_out = name + '_speed', |
---|
13 | sww2dem(name, basename_out = name + '_momentum', |
---|
14 | #quantity = 'stage-elevation', #Depth |
---|
15 | quantity = '(xmomentum**2 + ymomentum**2)**0.5', #Absolute momentum |
---|
16 | #quantity = '((xmomentum/(stage-elevation))**2 + (ymomentum/(stage-elevation))**2)**0.5', #Speed |
---|
17 | cellsize = 50, |
---|
18 | #cellsize = 500, |
---|
19 | #cellsize = 10, |
---|
20 | #easting_min = 465646, |
---|
21 | #easting_max = 480286, |
---|
22 | #northing_min = 7712865, |
---|
23 | #northing_max = 7724233, |
---|
24 | reduction = max, |
---|
25 | verbose = True, |
---|
26 | format = 'asc') |
---|
27 | |
---|
28 | |
---|
29 | #Check |
---|
30 | |
---|
31 | #data = read_ermapper_grid(name) |
---|
32 | #print 'Values from %s are in [%f, %f]' %(name, min(data.flat), max(data.flat)) |
---|
Note: See
TracBrowser
for help on using the repository browser.