Changeset 7319
- Timestamp:
- Jul 22, 2009, 2:31:50 PM (15 years ago)
- Location:
- anuga_work/production/australia_ph2/dampier/new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/dampier/new/Arc_asc2raster_GDA94z50.py
r6865 r7319 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\\dampier\\" 25 25 output_dir="anuga\\outputs\\" 26 26 27 time_dir1 = '20090225_153629_run_final_0_64469_mhingee' 27 time_dir1 = '20090615_132815_run_final_30_0_70844_1307_Tb_internal_kvanputt' 28 time_dir2 = '20090615_132942_run_final_30_0_27338_1307_Tb_internal_kvanputt' 29 time_dir3 = '20090615_133052_run_final_30_0_70337_1307_Tb_internal_kvanputt' 28 30 29 time_dirs = [time_dir1 ] #, time_dir2] #4, time_dir5] #, time_dir3, time_dir4, time_dir5, time_dir6]31 time_dirs = [time_dir1, time_dir2, time_dir3] #, time_dir3, time_dir4, time_dir5, time_dir6] 30 32 31 33 for time_dir in time_dirs: … … 46 48 47 49 #replication dictionary 48 replicate = ((' ceduna', ''),('_', ''),50 replicate = (('dampier', ''),('_', ''), 49 51 ('depth','_depth'),('speed', '_speed'), 50 52 ('elevation', '_ele_'), ('stage','_stage')) 51 53 52 54 generate_filename = [] 53 input_ascii = glob.glob(folder + '* .asc')55 input_ascii = glob.glob(folder + '*max.asc') 54 56 55 57 for infile in input_ascii: … … 69 71 70 72 print 'Process: Define Projection' 71 gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_5 3',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]"72 ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',1 35.0],PARAMETER['Scale_Factor',0.9996]"73 gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]" 74 ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]" 73 75 ",PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]") 74 76 ## output_extract = output_DEM + '_E' -
anuga_work/production/australia_ph2/dampier/new/export_results_max.py
r6865 r7319 22 22 directory = project.output_folder 23 23 24 time_dir1 = '20090 415_124319_run_final_0_70844_1307_Tb__kvanputt'25 time_dir2 = '20090 416_072538_run_final_0_27338_1307_Tb__kvanputt'26 time_dir3 = '20090 417_021634_run_final_0_70337_1307_Tb__kvanputt'24 time_dir1 = '20090615_132815_run_final_30_0_70844_1307_Tb_internal_kvanputt' 25 time_dir2 = '20090615_132942_run_final_30_0_27338_1307_Tb_internal_kvanputt' 26 time_dir3 = '20090615_133052_run_final_30_0_70337_1307_Tb_internal_kvanputt' 27 27 28 28 time_dirs = [time_dir1, time_dir2, time_dir3] … … 82 82 83 83 name1 = join(directory, time_dir, project.scenario_name) 84 name2 = join(directory, time_dir, project.scenario_name)+'_time_22740_0' 85 name3 = join(directory, time_dir, project.scenario_name)+'_time_45480_0' 84 name2 = join(directory, time_dir, project.scenario_name)+'_time_11220_0' 85 name3 = join(directory, time_dir, project.scenario_name)+'_time_22440_0' 86 name4 = join(directory, time_dir, project.scenario_name)+'_time_33660_0' 87 name5 = join(directory, time_dir, project.scenario_name)+'_time_44880_0' 88 name6 = join(directory, time_dir, project.scenario_name)+'_time_56100_0' 86 89 87 names = [name1, name2, name3 ]90 names = [name1, name2, name3, name4, name5, name6] 88 91 89 92 asc_name = [] -
anuga_work/production/australia_ph2/dampier/new/project.py
r6874 r7319 32 32 event_number = int(sys.argv[1]) 33 33 else: 34 event_number = 70 844# the event number or the mux file name34 event_number = 70337 # the event number or the mux file name 35 35 36 36 event_number_list = [70844, 27338, 70337] # To piggy back multiple events … … 41 41 friction=0.01 # manning's friction coefficient 42 42 starttime=0 # start time for simulation 43 finaltime=60000 #60000# final time for simulation44 setup = 'final '# This can be one of three values43 finaltime=60000 # final time for simulation 44 setup = 'final_30' # This can be one of three values 45 45 # trial - coarsest mesh, fast 46 46 # basic - coarse mesh -
anuga_work/production/australia_ph2/dampier/new/setup_model.py
r6865 r7319 114 114 project.time_thinning = 4 115 115 project.yieldstep = 60 116 elif project.setup == 'final_30': 117 print 'final' 118 project.scale_factor = 1 119 project.time_thinning = 4 120 project.yieldstep = 30 121 116 122 else: 117 123 print ("Sorry, you must set the 'setup' variable to one of:"
Note: See TracChangeset
for help on using the changeset viewer.