Changeset 6067
- Timestamp:
- Dec 11, 2008, 4:12:14 PM (16 years ago)
- Location:
- anuga_work/production/perth
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/Arc_asc2raster_GDA94z50.py
r6033 r6067 25 25 output_dir = "anuga\\outputs\\" 26 26 27 ##time_dir1 = '20081209_155431_run_final_0_27255_250m_none_lfountai' 28 ##time_dir2 = '20081210_100528_run_final_0_68693_250m_none_kvanputt' 29 ##time_dirs = [time_dir1, time_dir2] 27 30 28 time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'31 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt' 29 32 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt' 30 ##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'31 ##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' 32 35 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt' 33 36 ##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt' 34 37 35 38 36 time_dirs = [time_dir 1]#, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]39 time_dirs = [time_dir3, time_dir4] #, time_dir3, time_dir4, time_dir5, time_dir6] 37 40 38 41 for time_dir in time_dirs: … … 41 44 folder = scenario_dir + output_dir + time_dir + '\\' 42 45 raster_gbd = folder + 'raster.gdb' 43 land = scenario_dir + "map_work\\Perth.gdb\\poly_all_cut" 46 contour = raster_gbd + '\\contour_dep' 47 land = scenario_dir + "map_work\\Perth.gdb\\Outlines\\initial_conditions_rottnest" 48 ocean = scenario_dir + "map_work\\Perth.gdb\\Outlines\\initial_conditions_ocean1" 44 49 45 # Process: Create File GDB... 46 #gp.CreateFileGDB_management(folder, "raster")50 ## print 'Process: Create File GDB' 51 ## gp.CreateFileGDB_management(folder, "raster") 47 52 48 53 gp.Workspace = raster_gbd … … 54 59 ('_', ''),('Geordie', 'Geo'),('Sorrento', 'Sor'), ('max','M_'), 55 60 ('Fremantle', 'Fre'),('Rockingham', 'Roc'),('depth','_dep_'), 56 ('speed', '_spe_'), ('elevation', '_ele_'), ('stage','_sta _'))61 ('speed', '_spe_'), ('elevation', '_ele_'), ('stage','_stage')) 57 62 58 63 generate_filename = [] 59 input_ascii = glob.glob(folder + '*elevation.asc') 64 input_ascii = glob.glob(folder + 'perth_Sorrento*speed_max.asc') 65 print time_dir 60 66 61 67 for infile in input_ascii: … … 69 75 generate_filename.append(output_DEM) 70 76 print 'Output DEM ',output_DEM 71 output_extract = output_DEM + 'E'72 print 'Output Extract ',output_extract73 77 74 78 print 'Process: ASCII to Raster' … … 80 84 ",PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]") 81 85 86 87 ## output_extract = output_DEM + 'E' 88 ## print 'Output Extract ',output_extract 89 ## 82 90 ## print 'Process: Extract by Mask' 83 91 ## gp.ExtractByMask_sa(output_DEM, land, output_extract) 84 85 92 ## 93 ## -
anuga_work/production/perth/export_results_max.py
r6032 r6067 20 20 directory = project.output_dir 21 21 22 #time_dir1 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt' 23 #time_dir1 = '20080924_123626_run_final_0_27283_250m_all_kvanputt' # This uses the 250m bathymetry with all interior polygons 24 #time_dir2 = '20080912_154716_run_final_0_27283_alpha0.1_kvanputt' # This uses original bathyemetry data 25 #time_dir3 = '20080924_123601_run_final_0_27283_250m_none_kvanputt' # This uses the 250m bathymetry without any interior polygons 26 #time_dirs = [time_dir1] #, time_dir2]#, time_dir3] 22 ##time_dir1 = '20081209_155431_run_final_0_27255_250m_none_lfountai' 23 ##time_dir2 = '20081210_100528_run_final_0_68693_250m_none_kvanputt' 27 24 28 time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt' 29 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt' 30 ##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt' 25 ###time_dir1 = '20080924_123626_run_final_0_27283_250m_all_kvanputt' # This uses the 250m bathymetry with all interior polygons 26 ###time_dir2 = '20080912_154716_run_final_0_27283_alpha0.1_kvanputt' # This uses original bathyemetry data 27 ###time_dir3 = '20080924_123601_run_final_0_27283_250m_none_kvanputt' # This uses the 250m bathymetry without any interior polygons 28 ##time_dirs = [time_dir1, time_dir2]#, time_dir3] 29 30 ##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' 31 33 ##time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt' 32 34 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt' 33 35 ##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt' 34 35 time_dirs = [time_dir 1]#, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]36 ## 37 time_dirs = [time_dir2, time_dir3] #, time_dir3, time_dir4, time_dir5, time_dir6] 36 38 37 39 38 40 39 cellsize = 20 40 #cellsize = 25041 #cellsize = 5 42 cellsize = 250 41 43 42 #timestep = None # None means no timestep!43 timestep = 044 timestep = None # None means no timestep! 45 #timestep = 0 44 46 45 47 ###### … … 47 49 ###### 48 50 49 #area = [' Perth'] #Rockingham', 'Sorrento', 'Fremantle','Geordie' ] # strings must match keys in var_equations below51 #area = ['Sorrento', 'Geordie' ] # strings must match keys in var_equations below 50 52 area = ['All'] # 'All' means no special areas - the whole thing 51 53 … … 61 63 62 64 # one or more key strings from var_equations above 63 var = [' elevation']65 var = ['stage'] 64 66 65 67 ###### … … 91 93 92 94 name1 = directory+time_dir+sep+project.scenario_name 93 #name2 = directory+time_dir+sep+project.scenario_name+'_time_39180_0'94 #name3 = directory+time_dir+sep+project.scenario_name+'_time_78360_0'95 name2 = directory+time_dir+sep+project.scenario_name+'_time_39900_0' 96 name3 = directory+time_dir+sep+project.scenario_name+'_time_79800_0' 95 97 96 names = [name1 ] #, name2, name3]98 names = [name1, name2, name3] 97 99 98 100 asc_name = [] … … 124 126 print 'asc_name ', str(asc_name) 125 127 126 maxasc.MaxAsc(maxasc_outname, asc_name)128 MaxAsc(maxasc_outname, asc_name) -
anuga_work/production/perth/get_timeseries.py
r6032 r6067 18 18 directory = project.output_dir 19 19 20 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'21 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'22 ##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'23 ##time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt'24 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'25 time_dir6 = '20081 117_141914_run_final_0.6_27283_Rockingham_kvanputt'20 time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge' 21 time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge' 22 time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge' 23 time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt'+sep+'gauge' 24 time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge' 25 time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge' 26 26 27 time_dirs = [time_dir 6] #1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]27 time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 28 28 29 29 for time_dir in time_dirs: 30 name = directory+time_dir+sep+project.scenario_name 31 gauge = project.gauges_dir_name 32 sww2csv_gauges(name+'.sww',gauge, 33 quantities = ['stage','speed','depth','elevation'], 34 verbose=True) 35 30 36 31 name1 = directory+time_dir+sep+project.scenario_name 32 name2 = directory+time_dir+sep+project.scenario_name+'_time_43380_0' 33 #name3 = directory+time_dir+sep+project.scenario_name+'_time_78360_0' 34 35 names = [name1, name2] #, name3] 36 37 for i, name in enumerate(names): 38 gauge = project.gauges_dir_name 39 out_name = 'gauge_%d_' % i 40 sww2csv_gauges(name+'.sww',gauge,out_name = out_name, 41 quantities = ['stage','speed','depth','elevation'], 42 verbose=True) 43 ## for out_name in listdir(directory+time_dir): 44 ## #total_filename = directory+time_dir+sep+'All_' + out_name 45 ## if i == 0: 46 ## 47 ## else: 48 ## system('cat %s %s > %s' %(,out_name,)) 49 ## 37 ## name1 = directory+time_dir+sep+project.scenario_name 38 #### name2 = directory+time_dir+sep+project.scenario_name+'_time_43380_0' 39 #### name3 = directory+time_dir+sep+project.scenario_name+'_time_78360_0' 40 ## 41 ## names = [name1]#, name2, name3] 42 ## 43 ## for i, name in enumerate(names): 44 ## gauge = project.gauges_dir_name 45 #### out_name = 'gauge_%d_' % i 46 ## print name 47 ## sww2csv_gauges(name+'.sww',gauge,#out_name = out_name, 48 ## quantities = ['stage','speed','depth','elevation'], 49 ## verbose=True) 50 ## -
anuga_work/production/perth/project.py
r6032 r6067 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 ockingham_'+str(user)79 dir_comment='_'+setup+'_'+str(tide)+'_'+str(event_number)+'_'+ 'Rerun_'+str(user) 80 80 81 81 #------------------------------------------------------------------------------ -
anuga_work/production/perth/run_building_inundation.py
r6031 r6067 56 56 newline = record[-8:] 57 57 newline.insert(0,record[0]) 58 newline.insert(1,record[1]) 59 newline.insert(2,record[2]) 58 60 writer.writerow(newline) 59 61
Note: See TracChangeset
for help on using the changeset viewer.