source: production/karratha_2005/export_results.py @ 3514

Last change on this file since 3514 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 
1import project, os
2
3from anuga.pyvolution.data_manager import sww2dem
4from anuga.pyvolution.ermapper_grids import read_ermapper_grid
5
6
7#name = project.outputname + '_0.0tide_notsunami'
8#name = project.outputname + '_0.0tide'
9
10name = project.outputname
11
12#sww2dem(name, basename_out = name + '_speed',
13sww2dem(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.