Changeset 2682 for production/onslow_2006/export_results.py
- Timestamp:
- Apr 10, 2006, 9:39:39 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/export_results.py
r2543 r2682 1 1 import project, os 2 from os import sep 2 3 3 4 from pyvolution.data_manager import sww2dem 4 5 from pyvolution.ermapper_grids import read_ermapper_grid 5 6 6 #name = project.outputname 7 name = project.outputname 7 #name = project.outputname 8 8 9 time_dir = "20060328_094539_alpha_0.1" 10 directory = project.outputdir 11 name = directory + time_dir +sep + "source" 12 13 print'output dir:', name 9 14 #print 'Which variable do you want to export?' 10 15 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3 ' )) 11 which_var = 216 which_var = 4 12 17 13 18 if which_var == 0: # Stage … … 29 34 quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-30)' #Speed 30 35 36 if which_var == 4: # Elevation 37 outname = name + '_elevation' 38 quantityname = 'elevation' #Elevation 39 31 40 32 41 sww2dem(name, basename_out = outname, 33 42 quantity = quantityname, 34 cellsize = 25, # Trevor would like this at 2543 cellsize = 30, # Trevor would like this at 25 35 44 # define region for viz purposes 36 easting_min = project.e minviz,37 easting_max = project.e maxviz,38 northing_min = project.n minviz,39 northing_max = project.n maxviz,45 easting_min = project.e_min_area, 46 easting_max = project.e_max_area, 47 northing_min = project.n_min_area, 48 northing_max = project.n_max_area, 40 49 reduction = max, #this is because we want max quantityname 41 50 verbose = True,
Note: See TracChangeset
for help on using the changeset viewer.