Changeset 7385 for anuga_work/production/hobart_2009
- Timestamp:
- Aug 20, 2009, 9:20:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/hobart_2009/export_results_max.py
r7355 r7385 21 21 22 22 directory = project.output_folder 23 time_dir1 = '20090 714_162136_run_final_0_58260_None_kvanputt'23 time_dir1 = '20090504_124158_run_final_0_58068_small_kvanputt' 24 24 time_dir2 = '20090714_162041_run_final_0.8_58292_None_kvanputt' 25 25 time_dir3 = '20090714_161944_run_final_0.8_58280_None_kvanputt' 26 26 time_dir4 = '20090714_161740_run_final_0.8_58260_None_kvanputt' 27 27 28 time_dirs = [time_dir1 , time_dir2, time_dir3, time_dir4]28 time_dirs = [time_dir1] 29 29 30 30 # sww filename extensions ie. hobart_time_17640_0.sww, input into list 17640 31 31 # make sure numbers are in sequential order 32 times = [ 16980, 33960, 50940]32 times = [22680, 45360, 68040] 33 33 34 34 #Modify the cellsize value to set the size of the raster you require 35 35 #Take into account mesh size when aplying this paramater 36 cellsize = 2 0 #25036 cellsize = 250 #250 37 37 38 38 #Now set the timestep at which you want the raster generated. … … 120 120 print 'which var=%s' % which_var 121 121 #print 'asc_name ', str(asc_name) 122 if times == []: 123 print 'Only one sww file, no Max file required' 122 if len(names) >1: 123 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 124 125 print 'max asc outname ', maxasc_outname 126 print 'asc_name ', str(asc_name) 127 128 MaxAsc(maxasc_outname, asc_name) 124 129 else: 125 print 'Multiple sww files' 126 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 127 print 'maxasc_outname = ', maxasc_outname 128 MaxAsc(maxasc_outname, asc_name) 130 print 'Only one sww file, no Max file required' 131
Note: See TracChangeset
for help on using the changeset viewer.