Changeset 6835 for anuga_work/production/australia_ph2/bundaberg
- Timestamp:
- Apr 17, 2009, 4:06:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/bundaberg/export_results_max.py
r6743 r6835 22 22 directory = project.output_folder 23 23 24 time_dir1 = '20090306_131720_run_final_0_64448_1889_Tb_mhingee' 25 time_dir2 = '20090306_165354_run_final_0_58331_1889_Tb_mhingee' 26 time_dir3 = '20090306_165528_run_final_0_27347_1889_Tb_mhingee' 27 ##time_dir4 = '' 28 ##time_dir5 = '' 29 ##time_dir6 = '' 30 ## 31 time_dirs = [time_dir1, time_dir2, time_dir3] #time_dir2]# , time_dir4, time_dir5, time_dir6] 32 24 time_dir1 = '20090408_153233_run_final_0_31756_3274_Tb__mhingee' 25 time_dir2 = '20090409_015134_run_final_0_51469_3274_Tb__mhingee' 26 time_dir3 = '20090409_112941_run_final_0_62840_3274_Tb__mhingee' 27 28 time_dirs = [time_dir1, time_dir2, time_dir3] 33 29 34 30 cellsize = 250 35 31 ##cellsize = 5 36 32 37 #timestep = None # None means no timestep!38 timestep = 033 timestep = None # None means no timestep! 34 #timestep = 0 39 35 40 36 ###### … … 56 52 57 53 # one or more key strings from var_equations above 58 var = [' elevation','stage']54 var = ['stage'] 59 55 60 56 ###### … … 85 81 for time_dir in time_dirs: 86 82 87 name1 = join(directory, time_dir, project.scenario_name) 88 #name2 = join(directory, time_dir, project.scenario_name)+'_time_39600_0' 89 #name3 = join(directory, time_dir, project.scenario_name)+'_time_79200_0' 83 name = join(directory, time_dir, project.scenario_name) 90 84 91 names = [name1] #, name2]#, name3] 92 93 # asc_name = [] 94 95 for name in names: 96 97 outname = name + '_' + which_area + '_' + which_var 98 quantityname = var_equations[which_var] 85 outname = name + '_' + which_area + '_' + which_var 86 quantityname = var_equations[which_var] 99 87 100 101 102 103 104 105 106 107 108 109 110 111 112 88 print 'start sww2dem: time_dir=%s' % time_dir 89 90 sww2dem(name, basename_out = outname, 91 quantity = quantityname, 92 timestep = timestep, 93 cellsize = cellsize, 94 easting_min = easting_min, 95 easting_max = easting_max, 96 northing_min = northing_min, 97 northing_max = northing_max, 98 reduction = max, 99 verbose = True, 100 format = 'asc') 113 101 114 asc_name.append(outname + '.asc') 115 116 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 117 118 print 'max asc outname ', maxasc_outname 119 print 'asc_name ', str(asc_name) 120 121 MaxAsc(maxasc_outname, asc_name) 102
Note: See TracChangeset
for help on using the changeset viewer.