Changeset 2700 for production/onslow_2006/export_results.py
- Timestamp:
- Apr 11, 2006, 5:05:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/export_results.py
r2682 r2700 1 1 import project, os 2 from os import sep 2 import sys 3 3 4 4 from pyvolution.data_manager import sww2dem 5 5 from pyvolution.ermapper_grids import read_ermapper_grid 6 from pyvolution.util import Screen_Catcher 7 from os import sep 6 8 7 #name = project.outputname 8 9 time_dir = "20060328_094539_alpha_0.1" 9 time_dir = "20060327_095435" 10 10 directory = project.outputdir 11 11 name = directory + time_dir +sep + "source" 12 12 13 print'output dir:', name 13 #normal screen output is stored in 'outname' 14 screen_output_name = directory + time_dir + sep + "export_output.txt" 15 16 #used to catch screen output to file 17 sys.stdout = Screen_Catcher(screen_output_name) 18 sys.stderr = Screen_Catcher(screen_output_name) 19 20 print 'output dir:', name 14 21 #print 'Which variable do you want to export?' 15 22 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3 ' )) … … 38 45 quantityname = 'elevation' #Elevation 39 46 40 47 print 'start sww2dem' 41 48 sww2dem(name, basename_out = outname, 42 49 quantity = quantityname, 43 cellsize = 30, # Trevor would like this at 2550 cellsize = 1000, # Trevor would like this at 25 44 51 # define region for viz purposes 45 52 easting_min = project.e_min_area, … … 51 58 format = 'asc') 52 59 60 sys.stderr.write(sys.stdout.data) 61 53 62 #Check 54 63
Note: See TracChangeset
for help on using the changeset viewer.