Changeset 2773 for production/onslow_2006/export_results.py
- Timestamp:
- Apr 27, 2006, 11:11:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/export_results.py
r2706 r2773 7 7 from os import sep 8 8 9 time_dir = "20060 327_095435"9 time_dir = "20060419_071046" 10 10 directory = project.outputdir 11 11 name = directory + time_dir +sep + "source" … … 13 13 #normal screen output is stored in 'outname' 14 14 screen_output_name = directory + time_dir + sep + "export_output.txt" 15 screen_error_name = directory + time_dir + sep + "export_error.txt" 15 16 16 17 #used to catch screen output to file 17 18 sys.stdout = Screen_Catcher(screen_output_name) 18 sys.stderr = Screen_Catcher(screen_ output_name)19 sys.stderr = Screen_Catcher(screen_error_name) 19 20 20 21 print 'output dir:', name 21 22 #print 'Which variable do you want to export?' 22 23 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3 ' )) 23 which_var = 424 which_var = 2 24 25 sys.stderr.write(sys.stdout.data) 25 26 if which_var == 0: # Stage … … 49 50 sww2dem(name, basename_out = outname, 50 51 quantity = quantityname, 51 cellsize = 1000, # Trevor would like this at 2552 cellsize = 20, # Trevor would like this at 25 52 53 # define region for viz purposes 53 54 easting_min = project.e_min_area,
Note: See TracChangeset
for help on using the changeset viewer.