Last change
on this file since 2058 was
2053,
checked in by ole, 19 years ago
|
Work on ermapper formats (4 or 8 bytes).
|
File size:
842 bytes
|
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, |
---|
13 | quantity = 'stage-elevation', #Depth |
---|
14 | #quantity = '(xmomentum**2 + ymomentum**2)**0.5', #Absolute momentum |
---|
15 | cellsize = 50, |
---|
16 | #cellsize = 500, |
---|
17 | #cellsize = 10, |
---|
18 | #easting_min = 465646, |
---|
19 | #easting_max = 480286, |
---|
20 | #northing_min = 7712865, |
---|
21 | #northing_max = 7724233, |
---|
22 | reduction = max, |
---|
23 | verbose = True, |
---|
24 | format = 'ers') |
---|
25 | |
---|
26 | |
---|
27 | #Check |
---|
28 | |
---|
29 | #data = read_ermapper_grid(name) |
---|
30 | #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.