Last change
on this file since 4072 was
3514,
checked in by duncan, 18 years ago
|
Hi all,
I'm doing a change in the anuga structure, moving the code to
\anuga_core\source\anuga
After you have done an svn update, the PYTHONPATH has to be changed to;
PYTHONPATH = anuga_core/source/
This is part of changes required to make installation of anuga quicker and reducing the size of our sandpits.
If any imports are broken, try fixing them. With adding anuga. to them for example. If this seems to have really broken things, email/phone me.
Cheers
Duncan
|
File size:
1023 bytes
|
Line | |
---|
1 | import project, os |
---|
2 | |
---|
3 | from anuga.pyvolution.data_manager import sww2dem |
---|
4 | from anuga.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.