- Timestamp:
- May 6, 2009, 12:06:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/hobart/export_results_max.py
r6407 r6982 22 22 directory = project.output_folder 23 23 24 time_dir1 = '20090130_165532_run_final_0.6_27255_extend_dt_kvanputt' 25 ##time_dir2 = '' 26 ##time_dir3 = '' 27 ##time_dir4 = '' 28 ##time_dir5 = '' 29 ##time_dir6 = '' 30 ## 31 time_dirs = [time_dir1] #5, time_dir4]# , time_dir4, time_dir5, time_dir6] 24 time_dir1 = '20090424_121952_run_final_0_51204_2462_Tb__kvanputt' 25 time_dir2 = '20090424_123250_run_final_0_51204_2462_Tb_internal_kvanputt' 26 time_dir3 = '20090424_122951_run_final_0_58212_2462_Tb__kvanputt' 27 time_dir4 = '20090424_123104_run_final_0_64425_2462_Tb__kvanputt' 28 29 time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4] 32 30 33 31 … … 35 33 ##cellsize = 5 36 34 37 #timestep = None # None means no timestep!38 timestep = 035 timestep = None # None means no timestep! 36 #timestep = 0 39 37 40 38 ###### … … 42 40 ###### 43 41 44 #area = ['Bunbury', 'Busselton'] # strings must match keys in var_equations below45 42 area = ['All'] # 'All' means no special areas - the whole thing 46 43 … … 56 53 57 54 # one or more key strings from var_equations above 58 var = [' elevation']55 var = ['stage'] 59 56 60 57 ###### … … 85 82 for time_dir in time_dirs: 86 83 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' 84 name = join(directory, time_dir, project.scenario_name) 85 86 outname = name + '_' + which_area + '_' + which_var 87 quantityname = var_equations[which_var] 90 88 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] 89 print 'start sww2dem: time_dir=%s' % time_dir 90 91 sww2dem(name, basename_out = outname, 92 quantity = quantityname, 93 timestep = timestep, 94 cellsize = cellsize, 95 easting_min = easting_min, 96 easting_max = easting_max, 97 northing_min = northing_min, 98 northing_max = northing_max, 99 reduction = max, 100 verbose = True, 101 format = 'asc') 99 102 100 print 'start sww2dem: time_dir=%s' % time_dir101 102 sww2dem(name, basename_out = outname,103 quantity = quantityname,104 timestep = timestep,105 cellsize = cellsize,106 easting_min = easting_min,107 easting_max = easting_max,108 northing_min = northing_min,109 northing_max = northing_max,110 reduction = max,111 verbose = True,112 format = 'asc')113 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_outname119 ## print 'asc_name ', str(asc_name)120 ##121 ## MaxAsc(maxasc_outname, asc_name)
Note: See TracChangeset
for help on using the changeset viewer.