Changeset 6391
- Timestamp:
- Feb 24, 2009, 9:18:23 AM (16 years ago)
- Location:
- anuga_work/production/perth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/Arc_asc2raster_GDA94z50.py
r6067 r6391 28 28 ##time_dir2 = '20081210_100528_run_final_0_68693_250m_none_kvanputt' 29 29 ##time_dirs = [time_dir1, time_dir2] 30 30 time_dir1 = '20090129_155526_run_final_0.6_27255_Rottnest_kvanputt' 31 31 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt' 32 32 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt' 33 time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'34 time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt'33 ##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt' 34 ##time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt' 35 35 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt' 36 36 ##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt' 37 37 38 38 39 time_dirs = [time_dir 3, time_dir4] #, time_dir3, time_dir4, time_dir5, time_dir6]39 time_dirs = [time_dir1] #3, time_dir4] #, time_dir3, time_dir4, time_dir5, time_dir6] 40 40 41 41 for time_dir in time_dirs: … … 48 48 ocean = scenario_dir + "map_work\\Perth.gdb\\Outlines\\initial_conditions_ocean1" 49 49 50 ##print 'Process: Create File GDB'51 ##gp.CreateFileGDB_management(folder, "raster")50 print 'Process: Create File GDB' 51 gp.CreateFileGDB_management(folder, "raster") 52 52 53 53 gp.Workspace = raster_gbd … … 62 62 63 63 generate_filename = [] 64 input_ascii = glob.glob(folder + ' perth_Sorrento*speed_max.asc')64 input_ascii = glob.glob(folder + '*.asc') 65 65 print time_dir 66 66 -
anuga_work/production/perth/export_results_max.py
r6067 r6391 20 20 directory = project.output_dir 21 21 22 time_dir1 = '20090129_155526_run_final_0.6_27255_Rottnest_kvanputt' 23 24 22 25 ##time_dir1 = '20081209_155431_run_final_0_27255_250m_none_lfountai' 23 26 ##time_dir2 = '20081210_100528_run_final_0_68693_250m_none_kvanputt' … … 29 32 30 33 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt' 31 time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'32 time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'34 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt' 35 ##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt' 33 36 ##time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt' 34 37 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt' 35 38 ##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt' 36 39 ## 37 time_dirs = [time_dir 2, time_dir3] #, time_dir3, time_dir4, time_dir5, time_dir6]40 time_dirs = [time_dir1] #2, time_dir3] #, time_dir3, time_dir4, time_dir5, time_dir6] 38 41 39 42 40 43 41 #cellsize = 5 42 cellsize = 25044 cellsize = 20 45 #cellsize = 250 43 46 44 47 timestep = None # None means no timestep! … … 49 52 ###### 50 53 51 #area = ['Sorrento', 'Geordie'] # strings must match keys in var_equations below52 area = ['All'] # 'All' means no special areas - the whole thing54 area = ['Rottnest'] # strings must match keys in var_equations below 55 #area = ['All'] # 'All' means no special areas - the whole thing 53 56 54 57 ###### … … 63 66 64 67 # one or more key strings from var_equations above 65 var = [' stage']68 var = ['depth', 'speed'] 66 69 67 70 ###### … … 93 96 94 97 name1 = directory+time_dir+sep+project.scenario_name 95 name2 = directory+time_dir+sep+project.scenario_name+'_time_39900_0'96 name3 = directory+time_dir+sep+project.scenario_name+'_time_79800_0'98 ## name2 = directory+time_dir+sep+project.scenario_name+'_time_39900_0' 99 ## name3 = directory+time_dir+sep+project.scenario_name+'_time_79800_0' 97 100 98 names = [name1 , name2, name3]101 names = [name1]#, name2, name3] 99 102 100 asc_name = []103 # asc_name = [] 101 104 102 105 for name in names: … … 118 121 verbose = True, 119 122 format = 'asc') 120 121 asc_name.append(outname + '.asc')122 123 maxasc_outname = directory+time_dir+sep+project.scenario_name+'_'+which_area+'_'+which_var+'_max.asc'124 125 print 'max asc outname ', maxasc_outname126 print 'asc_name ', str(asc_name)127 128 MaxAsc(maxasc_outname, asc_name)123 ## 124 ## asc_name.append(outname + '.asc') 125 ## 126 ## maxasc_outname = directory+time_dir+sep+project.scenario_name+'_'+which_area+'_'+which_var+'_max.asc' 127 ## 128 ## print 'max asc outname ', maxasc_outname 129 ## print 'asc_name ', str(asc_name) 130 ## 131 ## MaxAsc(maxasc_outname, asc_name) -
anuga_work/production/perth/project.py
r6342 r6391 44 44 # run_scenario script is executed 45 45 tide = 0.6 #0.6 46 #event_number = 27255 # Java 9.3 worst case for Perth46 event_number = 27255 # Java 9.3 worst case for Perth 47 47 #event_number = 68693 # Sumatra 9.2 48 event_number = 27283 # Java 9.3 original48 #event_number = 27283 # Java 9.3 original 49 49 alpha = 0.1 # smoothing parameter for mesh 50 50 friction=0.01 # manning's friction coefficient … … 77 77 # Important to distinguish each run - ensure str(user) is included! 78 78 # Note, the user is free to include as many parameters as desired 79 dir_comment='_'+setup+'_'+str(tide)+'_'+str(event_number)+'_'+ 'R erun_'+str(user)79 dir_comment='_'+setup+'_'+str(tide)+'_'+str(event_number)+'_'+ 'Rottnest_'+str(user) 80 80 81 81 #------------------------------------------------------------------------------ … … 168 168 169 169 # where the mesh sits (this is created during the run_perth.py) 170 meshes_dir_name = meshes_dir + scenario_name+' .msh'170 meshes_dir_name = meshes_dir + scenario_name+'_rottnest.msh' 171 171 172 172 # where the boundary ordering files sit (this is used within build_boundary.py) … … 213 213 ##res_aoi1 = 500*res_factor 214 214 215 # Area of Interest 1 (Fremantle)216 poly_aoi1 = read_polygon(polygons_dir+'CBD_coastal.csv')217 res_aoi1 = 500*res_factor218 219 # Area of Interest 2 (Rockingham)220 poly_aoi2 = read_polygon(polygons_dir+'rockingham_penguin_increase.csv')221 res_aoi2 = 500*res_factor222 223 # Area of Interest 2 (Rockingham)224 poly_aoi2 = read_polygon(polygons_dir+'rockingham_penguin.csv')225 res_aoi2 = 500*res_factor226 227 # Area of Interest 2 (garden Island)228 poly_aoi2a = read_polygon(polygons_dir+'garden.csv')229 res_aoi2a= 500*res_factor230 231 # Area of Interest 3 (geordie bay - record of tsunami impact)232 poly_aoi3 = read_polygon(polygons_dir+'geordie_bay.csv')233 res_aoi3 = 500*res_factor234 235 # Area of Interest 4 (sorrento - record of tsunami impact)236 poly_aoi4 = read_polygon(polygons_dir+'sorrento_gauge.csv')237 res_aoi4 = 500*res_factor238 239 # Area of Significance 1 (Garden Island and sand bank infront of Rockingham)240 poly_aos1 = read_polygon(polygons_dir+'garden_rockingham_increase.csv')241 res_aos1 = 1000*res_factor215 ### Area of Interest 1 (Fremantle) 216 ##poly_aoi1 = read_polygon(polygons_dir+'CBD_coastal.csv') 217 ##res_aoi1 = 500*res_factor 218 ## 219 ### Area of Interest 2 (Rockingham) 220 ##poly_aoi2 = read_polygon(polygons_dir+'rockingham_penguin_increase.csv') 221 ##res_aoi2 = 500*res_factor 222 ## 223 ### Area of Interest 2 (Rockingham) 224 ##poly_aoi2 = read_polygon(polygons_dir+'rockingham_penguin.csv') 225 ##res_aoi2 = 500*res_factor 226 ## 227 ### Area of Interest 2 (garden Island) 228 ##poly_aoi2a = read_polygon(polygons_dir+'garden.csv') 229 ##res_aoi2a= 500*res_factor 230 ## 231 ### Area of Interest 3 (geordie bay - record of tsunami impact) 232 ##poly_aoi3 = read_polygon(polygons_dir+'geordie_bay.csv') 233 ##res_aoi3 = 500*res_factor 234 ## 235 ### Area of Interest 4 (sorrento - record of tsunami impact) 236 ##poly_aoi4 = read_polygon(polygons_dir+'sorrento_gauge.csv') 237 ##res_aoi4 = 500*res_factor 238 ## 239 ### Area of Significance 1 (Garden Island and sand bank infront of Rockingham) 240 ##poly_aos1 = read_polygon(polygons_dir+'garden_rockingham_increase.csv') 241 ##res_aos1 = 1000*res_factor 242 242 243 243 # Area of Significance 2 (incorporate coastline of rottnest) 244 244 poly_aos2 = read_polygon(polygons_dir+'rottnest_external.csv') 245 res_aos2 = 1000*res_factor 246 247 # Refined areas 248 # Polygon designed to incorporate dredged area from Fremantle to 249 # Rockingham as the steep incline was making the elevation go to 0 250 poly_aos3 = read_polygon(polygons_dir+'DredgeArea.csv') 251 res_aos3 = 1000*res_factor 252 253 # Shallow water 1 254 poly_sw1 = read_polygon(polygons_dir+'internal_h20mORd3km.csv') 255 res_sw1 = 25000*res_factor 245 res_aos2 = 500*res_factor 246 247 ### Refined areas 248 ### Polygon designed to incorporate dredged area from Fremantle to 249 ### Rockingham as the steep incline was making the elevation go to 0 250 ##poly_aos3 = read_polygon(polygons_dir+'DredgeArea.csv') 251 ##res_aos3 = 1000*res_factor 252 ## 253 ### Shallow water 1 254 ##poly_sw1 = read_polygon(polygons_dir+'internal_h20mORd3km.csv') 255 ##res_sw1 = 25000*res_factor 256 257 ### Shallow water 1 258 poly_sw1 = read_polygon(polygons_dir+'rottnest_20m.csv') 259 res_sw1 = 1000*res_factor 256 260 257 261 # Deep water (land of Rottnest, ANUGA does not do donuts!) … … 264 268 ## ,[poly_sw1,res_sw1], [poly_dw1,res_dw1]] 265 269 266 interior_regions = [[poly_aoi1,res_aoi1],[poly_aoi2,res_aoi2] 267 ,[poly_aoi2a,res_aoi2a],[poly_aoi3,res_aoi3] 268 ,[poly_aoi4,res_aoi4],[poly_aos1,res_aos1] 269 ,[poly_aos2,res_aos2],[poly_aos3,res_aos3] 270 ,[poly_sw1,res_sw1], [poly_dw1,res_dw1]] 270 #For Rottnest zoom in 271 interior_regions = [[poly_aos2,res_aos2],[poly_sw1,res_sw1] 272 ,[poly_dw1,res_dw1]] 273 274 ##interior_regions = [[poly_aoi1,res_aoi1],[poly_aoi2,res_aoi2] 275 ## ,[poly_aoi2a,res_aoi2a],[poly_aoi3,res_aoi3] 276 ## ,[poly_aoi4,res_aoi4],[poly_aos1,res_aos1] 277 ## ,[poly_aos2,res_aos2],[poly_aos3,res_aos3] 278 ## ,[poly_sw1,res_sw1], [poly_dw1,res_dw1]] 271 279 272 280 … … 309 317 ymaxPerth = 6467000 310 318 319 #Rottnest 320 xminRottnest = 352700 321 xmaxRottnest = 364800 322 yminRottnest = 6455000 323 ymaxRottnest = 6460500 324 325
Note: See TracChangeset
for help on using the changeset viewer.