Changeset 7546
- Timestamp:
- Oct 9, 2009, 5:17:27 PM (15 years ago)
- Location:
- anuga_work/production/wa/mandurah_2009
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/wa/mandurah_2009/build_elevation.py
r7545 r7546 64 64 geospatial_data[filename] = G_grid.clip(project.bounding_polygon) 65 65 66 # 66 #Create Geospatial data from TXT files 67 67 if not project.point_filenames == []: 68 68 for filename in project.point_filenames: … … 79 79 print 'Add geospatial objects' # except', project.offshore_name5 80 80 G = None 81 G1 = None 82 G2 = None 81 83 for key in geospatial_data: 82 #if key == project.point_filenames[4] or key == project.ascii_filenames[1]: 83 # # Skip these files for now 84 # continue 84 if key == 'm_peel_1m': 85 G1 = geospatial_data[key].clip(project.clip_box) 86 87 if key == 'ph10mex_clipped': 88 G2 = geospatial_data[key].clip_outside(project.clip_box) 89 90 G += geospatial_data[key] 91 G = G + G1 + G2 85 92 86 G += geospatial_data[key]87 88 #print 'Clip combined geospatial data'89 ##G_clip = G.clip_outside(project.poly_aoi1)90 ##G_all = G_clip + geospatial_data[project.point_filenames[4]]91 #G_clipped = G_all.clip(project.poly_all)92 #G_clip = G.clip(project.bounding_polygon)93 94 95 93 print 'Export combined DEM file' 96 94 G.export_points_file(project.combined_elevation + '.pts') … … 98 96 # Use for comparision in ARC 99 97 G.export_points_file(project.combined_elevation + '.txt') 100 -
anuga_work/production/wa/mandurah_2009/project.py
r7545 r7546 17 17 # Note, the user needs to set up the directory system accordingly 18 18 state = 'western_australia' 19 scenario_name = ' busselton'20 scenario_folder = ' busselton_tsunami_scenario'19 scenario_name = 'mandurah' 20 scenario_folder = 'mandurah_tsunami_scenario_2009' 21 21 22 22 #------------------------------------------------------------------------------- … … 34 34 finaltime=80000 # final time for simulation 35 35 36 setup = ' final' # This can be one of three values36 setup = 'trial' # This can be one of three values 37 37 # trial - coarsest mesh, fast 38 38 # basic - coarse mesh … … 50 50 #------------------------------------------------------------------------------- 51 51 52 output_comment = [setup, tide, event_number , 'Bt']52 output_comment = [setup, tide, event_number] 53 53 54 54 #------------------------------------------------------------------------------- … … 59 59 # Used in build_elevation.py 60 60 # Format for ascii grids, as produced in ArcGIS + a projection file 61 ascii_grid_filenames = [ 'busselton_v2', # Topo62 ' grid_250m_clip',63 ' grid_250m_clip2'] # BusseltonTopo61 ascii_grid_filenames = [#'m_harvey_1m', # Topo 62 'm_peel_1m', 63 'ph10mex_clipped'] # mandurah Topo 64 64 65 65 # Format for point is x,y,elevation (with header) 66 point_filenames = ['Busselton_Contour0.txt', # Coastline 67 'Busselton_BeachSurvey.txt', # Beach survey 68 'Busselton_NavyFinal.txt', # Bathymetry 69 'Busselton_Chart.txt', # Bathymetry Charts 70 'Busselton_Digitised.txt', # Digitised Fairsheet 71 'Busselton_250m.txt', # 250m 72 'Bunbury_TIN.txt', # Bunbury aoi TIN'd in ArcGIS 73 'Busselton_TIN.txt', # Busselton aoi TIN'd in ArcGIS 74 'XYAHD_clip.txt'] # To extend boundary 66 point_filenames = ['bathymetry_all_data.txt', # All data 67 'coastline.txt'] # Coastline 75 68 76 69 ### Add csv header list to all files in point_filenames … … 82 75 # Used in build_elevation.py 83 76 # Format for points easting,northing (no header) 84 bounding_polygon_filename = 'bounding_polygon _new.csv'77 bounding_polygon_filename = 'bounding_polygon.csv' 85 78 bounding_polygon_maxarea = 100000 86 79 … … 88 81 # Used in run_model.py 89 82 # Format for points easting,northing (no header) 90 interior_regions_data = [['busselton_1km.csv', 500], 91 ['bunbury_1km.csv', 500], 92 ['busselton_2km.csv', 10000], 93 ['bunbury_2km.csv', 10000], 94 ['island1.csv', 10000], 95 ['island2.csv', 10000], 96 ['coast_5km_d20m.csv', 40000]] 83 interior_regions_data = [['area_of_interest1.csv', 500], 84 ['area_of_interest2.csv', 500], 85 ['area_of_interest3.csv', 500], 86 ['bounding_area_of_interest.csv', 2500]] 97 87 98 88 # LAND - used to set the initial stage/water to be offcoast only 99 89 # Used in run_model.py. Format for points easting,northing (no header) 100 land_initial_conditions_filename = [['initial_condition_new.csv', 0], 101 ['initial_condition_marina.csv', 0]] 90 land_initial_conditions_filename = [['initial_conditions.csv', 0]] 102 91 103 92 # GAUGES - for creating timeseries at a specific point 104 93 # Used in get_timeseries.py. 105 94 # Format easting,northing,name,elevation (with header) 106 gauges_filename = 'MH_gauges2.csv'95 # gauges_filename = 'MH_gauges2.csv' 107 96 108 97 # BUILDINGS EXPOSURE - for identifying inundated houses 109 98 # Used in run_building_inundation.py 110 99 # Format latitude,longitude etc (geographic) 111 building_exposure_filename = 'busselton_res_clip.csv' # from NEXIS100 # building_exposure_filename = 'mandurah_res_clip.csv' # from NEXIS 112 101 113 102 # AREA OF IMAGES - Extent of each image to find out highest runup 114 103 # Header - easting,northing,id,value 115 104 # Used in get_runup.py 116 images_filename = 'define_area_clip.csv'105 # images_filename = 'define_area_clip.csv' 117 106 118 107 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 123 112 # Thinned ordering file from Hazard Map (geographic) 124 113 # Format is index,latitude,longitude (with header) 125 urs_order_filename = ' thinned_boundary_ordering_extend.csv'114 urs_order_filename = 'urs_order.csv' 126 115 127 116 # Landward bounding points 128 117 # Format easting,northing (no header) 129 landward_boundary_filename = 'landward_boundary_ new.csv'118 landward_boundary_filename = 'landward_boundary_polygon.csv' 130 119 131 120 # MUX input filename. … … 143 132 #------------------------------------------------------------------------------- 144 133 145 # ASCII export grid for Busselton 146 xminBusselton = 340000 147 xmaxBusselton = 352000 148 yminBusselton = 6271500 149 ymaxBusselton = 6280000 150 151 # ASCII export grid for Bunbury 152 xminBunbury = 369000 153 xmaxBunbury = 381000 154 yminBunbury = 6308000 155 ymaxBunbury = 6316500 134 # This is my clipping region for topo 135 clip_box = 'clip_box.csv' 136 137 # ASCII export grid for mandurah 138 xminmandurah = 377708 139 xmaxmandurah = 380186 140 yminmandurah = 6399699 141 ymaxmandurah = 6401544 142 156 143 157 144 ################################################################################ … … 245 232 # The absolute pathname for the gauges file 246 233 # Used for get_timeseries.py 247 if gauges_filename:248 gauges = join(gauges_folder, gauges_filename)234 #if gauges_filename: 235 # gauges = join(gauges_folder, gauges_filename) 249 236 250 237 # The absolute pathname for the building file 251 238 # Used for run_building_inundation.py 252 if building_exposure_filename:253 building_exposure = join(gauges_folder, building_exposure_filename)239 # if building_exposure_filename: 240 # building_exposure = join(gauges_folder, building_exposure_filename) 254 241 255 242 # The absolute pathname for the image file 256 243 # Used for get_runup.py 257 if images_filename:258 images = join(polygons_folder, images_filename)244 # if images_filename: 245 # images = join(polygons_folder, images_filename) 259 246 260 247 # full path to where MUX files (or meta-files) live
Note: See TracChangeset
for help on using the changeset viewer.