Changeset 6984
- Timestamp:
- May 6, 2009, 12:10:16 PM (16 years ago)
- Location:
- anuga_work/production
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/busselton_rerun/Arc_asc2raster_GDA94z50.py
r6678 r6984 32 32 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 33 33 34 time_dirs = [time_dir 5] #, time_dir4, time_dir5]34 time_dirs = [time_dir6] #1, time_dir2, time_dir3, time_dir4, time_dir5] 35 35 36 36 for time_dir in time_dirs: … … 57 57 58 58 generate_filename = [] 59 input_ascii = glob.glob(folder + '* n_depth_max.asc')59 input_ascii = glob.glob(folder + '*depth_max.asc') 60 60 61 61 for infile in input_ascii: -
anuga_work/production/busselton/busselton_rerun/Arc_txt2feature_class.py
r6678 r6984 26 26 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 27 27 28 time_dirs = [time_dir 1, time_dir2] #, time_dir5] #4, time_dir5, time_dir6]28 time_dirs = [time_dir6] #1, time_dir2] #, time_dir5] #4, time_dir5, time_dir6] 29 29 30 30 for time_dir in time_dirs: -
anuga_work/production/busselton/busselton_rerun/Arc_txt2feature_class_res.py
r6678 r6984 27 27 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 28 28 29 time_dirs = [time_dir 1]29 time_dirs = [time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 30 30 31 31 def replace_in_file(filename, instr, repstr): -
anuga_work/production/busselton/busselton_rerun/export_results_max.py
r6678 r6984 30 30 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 31 31 32 time_dirs = [time_dir 1,time_dir2, time_dir3, time_dir4, time_dir5]32 time_dirs = [time_dir6] #1,time_dir2, time_dir3, time_dir4, time_dir5] 33 33 34 34 -
anuga_work/production/busselton/busselton_rerun/get_runup.py
r6678 r6984 24 24 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 25 25 26 time_dirs = [time_dir 3, time_dir4, time_dir5]26 time_dirs = [time_dir6] #3, time_dir4, time_dir5] 27 27 28 28 interior_region = [] -
anuga_work/production/busselton/busselton_rerun/project.py
r6716 r6984 26 26 # Model specific parameters. 27 27 # One or all can be changed each time the run_model script is executed 28 tide = 0 # difference between MSL and HAT in metres28 tide = 0.6 # difference between MSL and HAT in metres 29 29 zone = 50 # specify zone of model 30 event_number = 272 83# the event number or the mux file name30 event_number = 27255 # the event number or the mux file name 31 31 alpha = 0.1 # smoothing parameter for mesh 32 32 friction=0.01 # manning's friction coefficient … … 60 60 # Format for ascii grids, as produced in ArcGIS + a projection file 61 61 ascii_grid_filenames = ['busselton_v2', # Topo 62 'grid_250m_clip'] # Busselton Topo 62 'grid_250m_clip', 63 'grid_250m_clip2'] # Busselton Topo 63 64 64 65 # Format for point is x,y,elevation (with header) … … 81 82 # Used in build_elevation.py 82 83 # Format for points easting,northing (no header) 83 bounding_polygon_filename = 'bounding_polygon .csv'84 bounding_polygon_filename = 'bounding_polygon_new.csv' 84 85 bounding_polygon_maxarea = 100000 85 86 … … 97 98 # LAND - used to set the initial stage/water to be offcoast only 98 99 # Used in run_model.py. Format for points easting,northing (no header) 99 land_initial_conditions_filename = [['initial_condition_ extend.csv', 0],100 land_initial_conditions_filename = [['initial_condition_new.csv', 0], 100 101 ['initial_condition_marina.csv', 0]] 101 102 … … 121 122 # Landward bounding points 122 123 # Format easting,northing (no header) 123 landward_boundary_filename = 'landward_boundary_ extend.csv'124 landward_boundary_filename = 'landward_boundary_new.csv' 124 125 125 126 # MUX input filename. -
anuga_work/production/busselton/busselton_rerun/run_building_inundation.py
r6678 r6984 33 33 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 34 34 35 time_dirs = [time_dir 3, time_dir4, time_dir5]35 time_dirs = [time_dir6] #, time_dir3, time_dir4, time_dir5, time_dir6] 36 36 37 37 buildings = project.building_exposure … … 39 39 for time_dir in time_dirs: 40 40 41 time_dir_name = time_dir[-25:][:-18] 41 time_dir_name = time_dir[-20:][:-12] 42 print time_dir_name 42 43 43 44 building_marker = '_m_'+ time_dir_name -
anuga_work/production/carnarvon/carnarvon_rerun/Arc_asc2raster_GDA94z49.py
r6681 r6984 32 32 time_dir6 = '20090327_160753_run_final_0_27283_Bt_kvanputt' 33 33 34 time_dirs = [time_dir 6] #, time_dir3, time_dir4]34 time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 35 35 36 36 for time_dir in time_dirs: … … 83 83 output_extract = output_DEM + '_E' 84 84 print 'Output Extract ',output_extract 85 gp.ExtractByMask_sa(output_DEM, ocean, output_extract)85 gp.ExtractByMask_sa(output_DEM, land, output_extract) 86 86 87 87 -
anuga_work/production/hobart_2009/build_urs_boundary.py
r6457 r6984 140 140 weights=mux_weights, 141 141 zone=project.zone, 142 mean_stage=project.tide,143 142 verbose=True) 144 143 else: # a single mux stem file, assume 1.0 weight … … 158 157 ordering_filename=order_filename, 159 158 weights=mux_weights, 160 mean_stage=project.tide,161 159 verbose=True) 162 160 -
anuga_work/production/hobart_2009/export_results_max.py
r6457 r6984 21 21 22 22 directory = project.output_folder 23 time_dir1 = '20090420_153539_run_final_0_58274_kvanputt' 24 time_dir2 = '20090420_153654_run_final_0_58279_kvanputt' 25 time_dir3 = '20090420_153739_run_final_0_58281_kvanputt' 26 time_dir4 = '20090420_153826_run_final_0_58078_kvanputt' 27 time_dir5 = '20090330_093828_run_final_0_58292_kvanputt' 28 time_dir6 = '20090504_123724_run_final_0_58282_small_kvanputt' 29 time_dir7 = '20090504_124158_run_final_0_58068_small_kvanputt' 23 30 24 ##time_dir1 = '20081217_101310_run_final_0_27283_250m_none_dt_kvanputt' 25 ##time_dir2 = '20081217_115336_run_final_0_27283_250m_none_dp_kvanputt' 26 ###time_dir1 = '20080924_123626_run_final_0_27283_250m_all_kvanputt' # This uses the 250m bathymetry with all interior polygons 27 ###time_dir2 = '20080912_154716_run_final_0_27283_alpha0.1_kvanputt' # This uses original bathyemetry data 28 ###time_dir3 = '20080924_123601_run_final_0_27283_250m_none_kvanputt' # This uses the 250m bathymetry without any interior polygons 29 ##time_dirs = [time_dir1, time_dir2]#, time_dir3] 30 31 time_dir1 = '20090130_165532_run_final_0.6_27255_extend_dt_kvanputt' 32 ##time_dir2 = '20081211_162311_run_final_0_27255_alpha0.1_kvanputt' 33 ##time_dir3 = '20081211_162346_run_final_0_68693_alpha0.1_kvanputt' 34 ##time_dir4 = '20081211_162433_run_final_0.6_68693_alpha0.1_kvanputt' 35 ##time_dir5 = '20081211_162656_run_final_0.6_27283_alpha0.1_kvanputt' 36 ##time_dir6 = '20081211_162744_run_final_0_27283_alpha0.1_kvanputt' 37 ## 38 time_dirs = [time_dir1] #5, time_dir4]# , time_dir4, time_dir5, time_dir6] 31 time_dirs = [time_dir6, time_dir7] 32 #time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5] 39 33 40 34 41 cellsize = 25042 ##cellsize = 5 35 #cellsize = 250 36 cellsize = 20 43 37 44 #timestep = None # None means no timestep!45 timestep = 038 timestep = None # None means no timestep! 39 #timestep = 0 46 40 47 41 ###### … … 49 43 ###### 50 44 51 #area = ['Bunbury', 'Busselton'] # strings must match keys in var_equations below52 area = ['All'] # 'All' means no special areas - the whole thing45 area = ['SArms', 'Bruny'] # strings must match keys in var_equations below 46 #area = ['All'] # 'All' means no special areas - the whole thing 53 47 54 48 ###### … … 63 57 64 58 # one or more key strings from var_equations above 65 var = [' elevation']59 var = ['depth', 'speed'] 66 60 67 61 ###### … … 91 85 92 86 for time_dir in time_dirs: 93 94 87 name1 = join(directory, time_dir, project.scenario_name) 95 #name2 = join(directory, time_dir, project.scenario_name)+'_time_39600_0' 96 #name3 = join(directory, time_dir, project.scenario_name)+'_time_79200_0' 97 98 names = [name1] #, name2]#, name3] 88 name2 = join(directory, time_dir, project.scenario_name)+'_time_22680_0' 89 name3 = join(directory, time_dir, project.scenario_name)+'_time_45360_0' 90 name4 = join(directory, time_dir, project.scenario_name)+'_time_68040_0' 91 92 names = [name1] #, name2, name3, name4] 99 93 100 #asc_name = []94 ## asc_name = [] 101 95 102 96 for name in names: -
anuga_work/production/hobart_2009/project.py
r6499 r6984 9 9 from os.path import join, exists 10 10 11 #------------------------------------------------------------------------------- 12 # Fitting Scenario 13 #------------------------------------------------------------------------------- 14 15 extent = None #'small' #None #'sw' # 'aos1' ##'aos1' 16 extent_maxarea = 30000 11 17 12 18 #------------------------------------------------------------------------------- … … 27 33 # One or all can be changed each time the run_model script is executed 28 34 tide = 0 # difference between MSL and HAT in metres 29 zone = 55 # specify zone of model30 event_number = 58364 #the event number or the mux file name35 zone = 55 # specify UTM zone of model 36 event_number = 64477 # 58280, 64477 the event number or the mux file name 31 37 alpha = 0.1 # smoothing parameter for mesh 32 38 friction=0.01 # manning's friction coefficient 33 39 starttime=0 # start time for simulation 34 finaltime= 1000 # final time for simulation40 finaltime=65000 # final time for simulation 35 41 36 42 setup = 'final' # This can be one of three values … … 50 56 #------------------------------------------------------------------------------- 51 57 52 output_comment = [setup, tide, event_number ]58 output_comment = [setup, tide, event_number, extent] 53 59 54 60 #------------------------------------------------------------------------------- … … 58 64 # ELEVATION DATA 59 65 # Used in build_elevation.py 60 # Format for ascii grids, as produced in ArcGIS + a projection file 61 ascii_grid_filenames = ['hob3_pro_extract', 'grid_250m_project', 'ldr_bbay', 62 'ldr_bellerive', 'ldr_brunyislandneck', 63 'ldr_calvertsbeach', 'ldr_carltonbeach', 64 'ldr_connelly', 'ldr_cremorne', 'ldr_dodge1', 65 'ldr_dodge2', 'ldr_kingston', 'ldr_lauderdale', 66 'ldr_linersfarne', 'ldr_oppossumbay', 'ldr_primrose', 67 'ldr_rosny', 'ldr_sandybay', 'ldr_selfspoint', 68 'ldr_sevenmile', 'ldr_southarm1', 'ldr_southarm2', 69 'ldr_sullivanscove', 'ldr_tranmere', 'tasdem_mask'] 70 71 # Format for point is x,y,elevation (with header) 72 point_filenames = ['tasmania_data.txt', # The data from Tasmania 73 'hydro_data.txt'] # Data from Hydro 66 if extent == None: 67 ascii_grid_filenames = ['topo_grid_notsw', 'fitting_problem_sw_elevation'] 68 point_filenames = [] 69 elif extent == 'sw': 70 # Format for ascii grids, as produced in ArcGIS + a projection file 71 ascii_grid_filenames = ['hob3_pro_extract', 'grid_250m_project', 'ldr_bbay', 72 'ldr_bellerive', 'ldr_brunyislandneck', 73 'ldr_calvertsbeach', 'ldr_carltonbeach', 74 'ldr_connelly', 'ldr_cremorne', 'ldr_dodge1', 75 'ldr_dodge2', 'ldr_kingston', 'ldr_lauderdale', 76 'ldr_linersfarne', 'ldr_oppossumbay', 'ldr_primrose', 77 'ldr_rosny', 'ldr_sandybay', 'ldr_selfspoint', 78 'ldr_sevenmile', 'ldr_southarm1', 'ldr_southarm2', 79 'ldr_sullivanscove', 'ldr_tranmere', 'tasdem_mask'] 80 81 # Format for point is x,y,elevation (with header) 82 point_filenames = ['Topo_1.txt','Topo_2.txt','Topo_3.txt', 83 'tasmania_data.txt', # The data from Tasmania 84 'hydro_data.txt'] # Data from Hydro 74 85 75 86 ### Add csv header list to all files in point_filenames … … 87 98 # Used in run_model.py 88 99 # Format for points easting,northing (no header) 89 interior_regions_data = [['aos1.csv', 1500], 90 ['aos2.csv', 1500], 91 ['sw.csv', 30000]] 92 PriorityArea_filename = 'PriorityAreas.csv' 93 100 if extent == 'sw': 101 interior_regions_data = [['aos1.csv', 1500], 102 ['aos2.csv', 1500]] 103 PriorityArea_filename = 'PriorityAreas.csv' 104 elif extent == 'aos1': 105 interior_regions_data = [] 106 PriorityArea_filename = 'PriorityAreas_aos1.csv' 107 elif extent == 'aos2': 108 interior_regions_data = [] 109 PriorityArea_filename = 'PriorityAreas_aos2.csv' 110 elif extent == 'small': 111 interior_regions_data = [['aoi_bruny.csv', 500], 112 ['aoi_S_arms.csv', 500], 113 ['aos1_small.csv', 1500], 114 ['aos2.csv', 1500], 115 ['sw.csv', 30000]] 116 PriorityArea_filename = None 117 elif extent == None: 118 interior_regions_data = [['aos1.csv', 1500], 119 ['aos2.csv', 1500], 120 ['sw.csv', 30000]] 121 PriorityArea_filename = 'PriorityAreas.csv' 122 94 123 # LAND - used to set the initial stage/water to be offcoast only 95 124 # Used in run_model.py. Format for points easting,northing (no header) … … 99 128 # Used in get_timeseries.py. 100 129 # Format easting,northing,name,elevation (with header) 101 gauges_filename = ' gauges.csv'130 gauges_filename = 'tsunamipointsMGA.csv' 102 131 103 132 # BUILDINGS EXPOSURE - for identifying inundated houses … … 133 162 #------------------------------------------------------------------------------- 134 163 135 # ASCII export grid for Busselton 136 xminBusselton = 340000 137 xmaxBusselton = 352000 138 yminBusselton = 6271500 139 ymaxBusselton = 6280000 140 141 # ASCII export grid for Bunbury 142 xminBunbury = 369000 143 xmaxBunbury = 381000 144 yminBunbury = 6308000 145 ymaxBunbury = 6316500 164 # ASCII export grid for Bruny 165 xminBruny = 523900 166 xmaxBruny = 533200 167 yminBruny = 5204300 168 ymaxBruny = 5213100 169 170 # ASCII export grid for South Arms 171 xminSArms = 532497 172 xmaxSArms = 534326 173 yminSArms = 5237028 174 ymaxSArms = 5238465 175 146 176 147 177 ################################################################################ … … 193 223 output_folder = join(anuga_folder, 'outputs') 194 224 gauges_folder = join(anuga_folder, 'gauges') 195 meshes_folder = join(anuga_folder, 'meshes')196 225 event_folder = join(boundaries_folder, str(event_number)) 197 226 … … 210 239 # The absolute pathname of the all elevation, generated in build_elevation.py 211 240 combined_elevation = join(topographies_folder, combined_elevation_basename) 212 213 # The absolute pathname of the mesh, generated in run_model.py214 meshes = join(meshes_folder, scenario_name) + '.msh'215 241 216 242 # The pathname for the urs order points, used within build_urs_boundary.py … … 234 260 output_run_time = join(output_run, scenario_name) 235 261 262 # The absolute pathname of the mesh, generated in run_model.py 263 meshes = join(output_run, scenario_name) + '.msh' 264 236 265 # The absolute pathname for the gauges file 237 266 # Used for get_timeseries.py … … 248 277 249 278 #Multiple polygons in one CSV file to make internal polygons 250 PriorityAreas = join(polygons_folder, PriorityArea_filename) 251 252 279 if not PriorityArea_filename == None: 280 PriorityAreas = join(polygons_folder, PriorityArea_filename) 281 282 -
anuga_work/production/hobart_2009/run_model.py
r6457 r6984 147 147 148 148 domain.set_boundary({'back': Br, 149 'side': B d,149 'side': Bt, 150 150 'ocean': Bf}) 151 151 -
anuga_work/production/hobart_2009/setup_model.py
r6499 r6984 85 85 sanity_error = True 86 86 87 if not exists(project.meshes_folder):88 print "Sorry, meshes directory '%s' doesn't exist" % project.meshes_folder89 sanity_error = True90 91 87 if not exists(project.mux_data_folder): 92 88 print "Sorry, mux data directory '%s' doesn't exist" % project.mux_data_folder … … 158 154 project.interior_regions = [] 159 155 160 polygons, maxareas = csv2polygons(project.PriorityAreas) 161 print 'Creating %d internal polygons' % len(polygons) 162 #def create_polygon_function(polygons, geo_reference=None): 163 project.interior_regions = [] 164 for i, key in enumerate(polygons): 165 if i%100==0: print i 166 poly = polygons[key] 167 maxarea = float(maxareas[key]) 168 project.interior_regions.append([poly, 169 maxarea*project.scale_factor]) 156 if not project.PriorityArea_filename == None: 157 polygons, maxareas = csv2polygons(project.PriorityAreas) 158 print 'Creating %d internal polygons' % len(polygons) 159 #def create_polygon_function(polygons, geo_reference=None): 160 project.interior_regions = [] 161 for i, key in enumerate(polygons): 162 if i%100==0: print i 163 poly = polygons[key] 164 maxarea = float(maxareas[key]) 165 project.interior_regions.append([poly, 166 maxarea*project.scale_factor]) 170 167 171 168 for filename, maxarea in project.interior_regions_data: -
anuga_work/production/onslow_2009/project.py
r6771 r6984 96 96 # LAND - used to set the initial stage/water to be offcoast only 97 97 # Used in run_model.py. Format for points easting,northing (no header) 98 land_initial_conditions_filename = [['initial_condition _mainland.csv', 0]]98 land_initial_conditions_filename = [['initial_conditions_mainland.csv', 0]] 99 99 100 100 # GAUGES - for creating timeseries at a specific point -
anuga_work/production/patong/asc2raster_WGS84z47N.py
r6686 r6984 26 26 27 27 28 time_dir1 = '20090323_192017_run_final_0.8_mux_small_final_onielsen' 29 #time_dir2 = '20090204_143421_run_final_0.8_buildings_transmissive_onielsen' 28 time_dir1 = '20090408_090633_run_final_0.8_mux_small_final_onielsen' 29 time_dir2 = '20090407_171956_run_final_0.8_mux_small_no_buildings_onielsen' 30 time_dir3 = '20090407_172311_run_final_0.8_mux_small_f0.0003_onielsen' 31 time_dir4 = '20090407_172145_run_final_0.8_mux_small_f0.03_onielsen' 32 time_dir5 = '20090408_090831_run_final_0.8_mux_small_plus10cm_onielsen' 33 time_dir6 = '20090408_092934_run_final_0.8_mux_small_minus10cm_onielsen' 34 time_dir7 = '20090401_104100_run_final_0.8_mux_small_viz_onielsen' 30 35 31 time_dirs = [time_dir1] #, time_dir2] 36 37 time_dirs = [time_dir7] #1, time_dir2,time_dir3, time_dir4,time_dir5, time_dir6, time_dir7] 32 38 33 39 for time_dir in time_dirs: … … 50 56 51 57 generate_filename = [] 52 input_ascii = glob.glob(folder + '*speed .asc')58 input_ascii = glob.glob(folder + '*speed_max.asc') 53 59 54 60 for infile in input_ascii: -
anuga_work/production/patong/new_version/export_results_max.py
r6685 r6984 23 23 24 24 25 time_dir1 = '20090323_192017_run_final_0.8_mux_small_final_onielsen' 26 time_dir2 = '20090318_110049_run_final_0.8_mux_small_ultimate_onielsen' 25 time_dir1 = '20090408_090633_run_final_0.8_mux_small_final_onielsen' 26 time_dir2 = '20090407_171956_run_final_0.8_mux_small_no_buildings_onielsen' 27 time_dir3 = '20090407_172311_run_final_0.8_mux_small_f0.0003_onielsen' 28 time_dir4 = '20090407_172145_run_final_0.8_mux_small_f0.03_onielsen' 29 time_dir5 = '20090408_090831_run_final_0.8_mux_small_plus10cm_onielsen' 30 time_dir6 = '20090408_092934_run_final_0.8_mux_small_minus10cm_onielsen' 31 time_dir7 = '20090401_104100_run_final_0.8_mux_small_viz_onielsen' 27 32 28 time_dirs = [time_dir1] #, time_dir2] 33 34 time_dirs = [time_dir7] #, time_dir2,time_dir3, time_dir4,time_dir5, time_dir6, time_dir7] 29 35 30 36 … … 83 89 84 90 name1 = join(directory, time_dir, project.scenario_name) 85 ##name2 = join(directory, time_dir, project.scenario_name)+'_time_10270_0'86 ##name3 = join(directory, time_dir, project.scenario_name)+'_time_14555_0'91 name2 = join(directory, time_dir, project.scenario_name)+'_time_10270_0' 92 name3 = join(directory, time_dir, project.scenario_name)+'_time_14555_0' 87 93 88 names = [name1 ] #, name2, name3]94 names = [name1, name2, name3] 89 95 90 ##asc_name = []96 asc_name = [] 91 97 92 98 for name in names: … … 109 115 format = 'asc') 110 116 111 ##asc_name.append(outname + '.asc')112 ##113 ##maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc'114 ## 115 ##print 'max asc outname ', maxasc_outname116 ##print 'asc_name ', str(asc_name)117 ##118 ##MaxAsc(maxasc_outname, asc_name)117 asc_name.append(outname + '.asc') 118 119 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 120 121 print 'max asc outname ', maxasc_outname 122 print 'asc_name ', str(asc_name) 123 124 MaxAsc(maxasc_outname, asc_name) -
anuga_work/production/patong/new_version/project.py
r6751 r6984 107 107 # Used in get_timeseries.py. 108 108 # Format easting,northing,name,elevation (with header) 109 gauges_filename = 'gauges .csv'109 gauges_filename = 'gauges_h.csv' 110 110 111 111 # BUILDINGS POLYOGN - for elevation of buildings -
anuga_work/production/perth/Arc_asc2raster_GDA94z50.py
r6770 r6984 32 32 time_dir6 = '20090327_155803_run_final_0_68693_Bt_kvanputt' 33 33 34 time_dirs = [time_dir 4, time_dir5, time_dir6] #time_dir1, time_dir2, time_dir3,34 time_dirs = [time_dir1] #time_dir1, time_dir2, time_dir3, 35 35 36 36 for time_dir in time_dirs: … … 57 57 58 58 generate_filename = [] 59 input_ascii = glob.glob(folder + '* speed_max.asc')59 input_ascii = glob.glob(folder + '*ham_speed_max.asc') 60 60 print time_dir 61 61
Note: See TracChangeset
for help on using the changeset viewer.