Ignore:
Timestamp:
Feb 1, 2006, 4:28:22 PM (19 years ago)
Author:
sexton
Message:

Updates to Sydney example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/export_results.py

    r2313 r2317  
    88
    99#print 'Which variable do you want to export?'
    10 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2'  ))
    11 which_var = 2
     10#which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3  '  ))
     11which_var = 3
    1212
    1313if which_var == 0:  # Stage
     
    2222    outname = name + '_depth'
    2323    quantityname = 'stage-elevation'  #Depth
     24
     25if which_var == 3:  # Speed
     26    outname = name + '_speed'
     27    #quantityname = '((xmomentum/(stage-elevation))**2 + (ymomentum/(stage-elevation))**2)**0.5'  #Speed
     28    #quantityname = 'xmomentum/(stage-elevation)'  #Speed
     29    quantityname = '(xmomentum**2 + ymomentum**2 + 1.e-30)**0.5/(stage-elevation)'  #Speed
     30
    2431   
    2532sww2dem(name, basename_out = outname,
Note: See TracChangeset for help on using the changeset viewer.