Changeset 6969
- Timestamp:
- May 5, 2009, 3:06:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/maningrida/Arc_asc2raster_GDA94z53.py
r6964 r6969 22 22 gp.overwriteoutput = 0 23 23 24 scenario_dir = "\\\\nas2\\gemd\\georisk_models\\inundation\\data\\australia_ph2\\ ceduna\\"24 scenario_dir = "\\\\nas2\\gemd\\georisk_models\\inundation\\data\\australia_ph2\\maningrida\\" 25 25 output_dir="anuga\\outputs\\" 26 26 27 time_dir1 = '20090225_153629_run_final_0_64469_mhingee' 27 time_dir1 = '20090415_123320_run_final_0_64970_1878_Tb__kvanputt' 28 time_dir2 = '20090418_092859_run_final_0_71078_1878_Tb__kvanputt' 29 time_dir3 = '20090421_012030_run_final_0_71141_1878_Tb__kvanputt' 30 time_dir4 = '20090422_115416_run_final_0_64970_1878_Tb_internal_mhingee' 28 31 29 time_dirs = [time_dir1] #, time_dir2] #4, time_dir5] #, time_dir3, time_dir4, time_dir5, time_dir6]30 31 for time_dir in time_dirs:32 32 33 events = [[time_dir1,0.430643],[time_dir2,0.462943],[time_dir3,0.418183],[time_dir4,0.418183]] 34 35 for event in events: 36 ##for time_dir in time_dirs: 37 time_dir = event[0] 38 max_wave = event[1] 33 39 # Local variables... 34 40 folder = scenario_dir + output_dir + time_dir +'\\' 35 41 raster_gbd = folder + 'raster.gdb' 36 land = scenario_dir + "map_work\\Busselton.gdb\\Internal_polygons\\initial_conditions_extend_Di"37 ocean = scenario_dir + "map_work\\Busselton.gdb\\input_boundaries\\Ocean"42 ## land = scenario_dir + "map_work\\Busselton.gdb\\Internal_polygons\\initial_conditions_extend_Di" 43 ## ocean = scenario_dir + "map_work\\Busselton.gdb\\input_boundaries\\Ocean" 38 44 39 45 … … 46 52 47 53 #replication dictionary 48 replicate = ((' ceduna', ''),('_', ''),54 replicate = (('maningrida', ''),('_', ''), 49 55 ('depth','_depth'),('speed', '_speed'), 50 56 ('elevation', '_ele_'), ('stage','_stage')) … … 76 82 ## print 'Process: Extract by Mask' 77 83 ## gp.ExtractByMask_sa(output_DEM, land, output_extract) 84 # do this bit only if there are only stage asc files 85 div_file = output_DEM.replace('stage','div_stage') 86 print 'divide', output_DEM,' by', max_wave,' and call',div_file 87 gp.Divide_sa(output_DEM,max_wave,div_file) 78 88 79 89 90
Note: See TracChangeset
for help on using the changeset viewer.