Rev | Line | |
---|
[1857] | 1 | import project, os |
---|
| 2 | |
---|
[1877] | 3 | from pyvolution.data_manager import sww2dem |
---|
[2053] | 4 | from pyvolution.ermapper_grids import read_ermapper_grid |
---|
[1857] | 5 | |
---|
| 6 | |
---|
[1877] | 7 | #name = project.outputname + '_0.0tide_notsunami' |
---|
[1920] | 8 | #name = project.outputname + '_0.0tide' |
---|
[1857] | 9 | |
---|
[1920] | 10 | name = project.outputname |
---|
| 11 | |
---|
[2065] | 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 |
---|
[1920] | 17 | cellsize = 50, |
---|
[2053] | 18 | #cellsize = 500, |
---|
[1920] | 19 | #cellsize = 10, |
---|
| 20 | #easting_min = 465646, |
---|
| 21 | #easting_max = 480286, |
---|
| 22 | #northing_min = 7712865, |
---|
| 23 | #northing_max = 7724233, |
---|
[1877] | 24 | reduction = max, |
---|
| 25 | verbose = True, |
---|
[2065] | 26 | format = 'asc') |
---|
[1857] | 27 | |
---|
[2053] | 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.