Changeset 6529
- Timestamp:
- Mar 17, 2009, 2:29:49 PM (16 years ago)
- Location:
- anuga_work/production/australia_ph2/sydney
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/sydney/Arc_asc2raster_GDA94z56.py
r6498 r6529 29 29 ##time_dirs = [time_dir1, time_dir2] 30 30 31 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'32 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'33 time_dir3 = '20090 211_135851_run_final_0_7875_jgriffin'34 #time_dir4 = '20090123_154945_run_final_0_7875_250m_small_jgriffin'35 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'31 time_dir1 = '20090311_145740_run_final_0_58152_2956_Tb_jgriffin' 32 time_dir2 = '20090311_145828_run_final_0_58152_2956_Bf_jgriffin' 33 time_dir3 = '20090313_154712_run_final_0_58222_2956_Bf_jgriffin' 34 time_dir4 = '20090313_154810_run_final_0_58326_2956_Bf_jgriffin' 35 time_dir5 = '20090316_142137_run_final_0_58326_2956_Bf_jgriffin' 36 36 ##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt' 37 37 38 38 39 time_dirs = [time_dir3 ]#, time_dir4] #, time_dir3, time_dir4, time_dir5, time_dir6]39 time_dirs = [time_dir3, time_dir4 , time_dir3, time_dir4, time_dir5]#, time_dir6] 40 40 41 41 for time_dir in time_dirs: … … 62 62 63 63 generate_filename = [] 64 input_ascii = glob.glob(folder + '* max.asc')64 input_ascii = glob.glob(folder + '*stage_max.asc') 65 65 print time_dir 66 66 -
anuga_work/production/australia_ph2/sydney/export_results_max.py
r6498 r6529 1 1 """ 2 2 Generates ascii grids of nominated areas - 3 Input: sww file from run_p t_hedland.py3 Input: sww file from run_perth.py 4 4 boundaries for grids from project.py 5 5 Outputs: ascii grids of specified variables … … 13 13 import project, os 14 14 import sys 15 from os.path import join 15 16 from anuga.lib.maxasc.maxasc import MaxAsc 16 17 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts 17 18 from anuga.shallow_water.data_manager import sww2dem 18 19 from os import sep 19 from os.path import join 20 20 21 21 22 directory = project.output_folder 22 print directory23 23 24 time_dir1 = '20090311_145740_run_final_0_58152_2956_Tb_jgriffin' 25 time_dir2 = '20090311_145828_run_final_0_58152_2956_Bf_jgriffin' 26 #time_dir3 = '20090123_154945_run_final_0_7875_250m_small_jgriffin' 27 time_dirs = [time_dir1,time_dir2]#,time_dir2,time_dir3]#, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 24 time_dir1 = '20090316_142137_run_final_0_58326_2956_Bf_jgriffin' 25 ##time_dir2 = '20090311_152929_run_final_0_70385_1203_Tb_jgriffin' 26 ##time_dir3 = '20090311_153009_run_final_0_70454_1203_Bf_jgriffin' 27 ##time_dir4 = '20090311_153054_run_final_0_70339_1203_Bf_jgriffin' 28 time_dirs = [time_dir1]#,time_dir2,time_dir3,time_dir4] 28 29 29 #cellsize = 2030 30 cellsize = 250 31 ##cellsize = 5 31 32 32 timestep = None # None means no timestep!33 #timestep = 033 #timestep = None # None means no timestep! 34 timestep = 0 34 35 35 36 ###### … … 37 38 ###### 38 39 39 #area = [' ']# strings must match keys in var_equations below40 area = ['All'] 40 #area = ['Bunbury', 'Busselton'] # strings must match keys in var_equations below 41 area = ['All'] # 'All' means no special areas - the whole thing 41 42 42 43 ###### … … 51 52 52 53 # one or more key strings from var_equations above 53 #var = ['stage', 'speed','depth'] 54 var = ['stage','elevation'] 54 var = ['elevation','stage'] 55 55 56 56 ###### … … 82 82 83 83 name1 = join(directory, time_dir, project.scenario_name) 84 name2 = join(directory, time_dir, project.scenario_name)+'_time_66360_0' 85 #name3 = join(directory, time_dir, project.scenario_name)+'_time_33360_0' 86 #name4 = join(directory, time_dir, project.scenario_name)+'_time_50040_0' 87 #name5 = join(directory, time_dir, project.scenario_name)+'_time_66720_0' 88 89 names = [name1, name2]# , name3, name4, name5] 84 ## name2 = join(directory, time_dir, project.scenario_name)+'_time_66360_0' 85 ## name3 = join(directory, time_dir, project.scenario_name)+'_time_26640_0' 86 ## name4 = join(directory, time_dir, project.scenario_name)+'_time_39960_0' 87 ## name5 = join(directory, time_dir, project.scenario_name)+'_time_53280_0' 88 ## name6 = join(directory, time_dir, project.scenario_name)+'_time_66600_0' 89 ## name7 = join(directory, time_dir, project.scenario_name)+'_time_79920_0' 90 91 names = [name1]#, name2]#, name3,name4,name5,name6,name7] 90 92 91 93 asc_name = [] … … 112 114 asc_name.append(outname + '.asc') 113 115 114 maxasc_outname = directory+time_dir+sep+project.scenario_name+'_'+which_area+'_'+which_var+'_max.asc'116 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 115 117 116 118 print 'max asc outname ', maxasc_outname -
anuga_work/production/australia_ph2/sydney/project.py
r6511 r6529 29 29 tide = 0 # difference between MSL and HAT 30 30 zone = 56 # specify zone of model 31 event_number = 58 222# the event number or the mux file name31 event_number = 58326 # the event number or the mux file name 32 32 alpha = 0.1 # smoothing parameter for mesh 33 33 friction=0.01 # manning's friction coefficient … … 39 39 wave = 'Bf' # Bf (sts wave) Tb (index wave) 40 40 41 setup = ' trial' # This can be one of three values41 setup = 'final' # This can be one of three values 42 42 # trial - coarsest mesh, fast 43 43 # basic - coarse mesh
Note: See TracChangeset
for help on using the changeset viewer.