Changeset 5814
- Timestamp:
- Oct 3, 2008, 7:48:39 AM (16 years ago)
- Location:
- anuga_work/production/perth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/build_boundary_27255.py
r5804 r5814 1 1 """ 2 Script for building boundary to run a tsunami inundation scenario for perth,2 Script for building boundary to run a tsunami inundation scenario for onslow, 3 3 WA, Australia. The boundary is sourced from the National Hazard Map. 4 4 … … 6 6 event_number needs to be reflected in the project file 7 7 Output: creates a sts file and csv files stored in project.boundaries_dir_event. 8 The run_ perth.py is reliant on the output of this script.8 The run_onslow.py is reliant on the output of this script. 9 9 """ 10 10 import os -
anuga_work/production/perth/build_boundary_27283.py
r5804 r5814 1 1 """ 2 Script for building boundary to run tsunami inundation scenario for perth,2 Script for building boundary to run tsunami inundation scenario for onslow, 3 3 WA, Australia. The boundary is based on the National Hazard Map. 4 4 … … 6 6 event_number needs to be reflected in the project file 7 7 Output: creates a sts file and csv files stored in project.boundaries_dir_event. 8 The run_ perth.py is reliant on the output of this script.8 The run_onslow.py is reliant on the output of this script. 9 9 """ 10 10 import os -
anuga_work/production/perth/project.py
r5796 r5814 38 38 # Note, the user needs to set up the directory system accordingly 39 39 state = 'western_australia' 40 scenario_name = ' perth'41 scenario = ' perth_tsunami_scenario'40 scenario_name = 'onslow' 41 scenario = 'onslow_tsunami_scenario_2008' 42 42 43 43 # Model specific parameters. One or all can be changed each time the … … 82 82 #------------------------------------------------------------------------------ 83 83 84 # elevation data used in build_ perth.py84 # elevation data used in build_onslow.py 85 85 # onshore data: format ascii grid with accompanying projection file 86 onshore_name = ' perth_dli_ext'86 onshore_name = 'revised_onshore_20m_dli' 87 87 # island: format ascii grid with accompanying projection file 88 island_name = 'rott_dli_ext' 89 island_name1 = 'gard_dli_ext' 90 island_name2 = 'carnac_island_dli_ext' 91 island_name3 = 'penguin_dli_ext' 88 island_name = 'onslow_islands_dted2' 92 89 # coastline: format x,y,elevation (with title) 93 coast_name = ' coastline_perthP.txt'90 coast_name = 'revised_coastline.txt' 94 91 # bathymetry: format x,y,elevation (with title) 95 offshore_name = 'Perth.txt' 96 offshore_name1 = 'Perth_Chart.txt' 97 offshore_name2 = 'Fremantle_north.txt' 98 offshore_name3 = 'port_swanriver.txt' 92 offshore_name = 'onslow_offshore_points.txt' 93 offshore_name1 = 'ONS16FINAL.txt' 94 offshore_name2 = 'ONS18FINAL.txt' 95 offshore_name3 = 'ONS18FINAL.txt' 96 offshore_name4 = 'beach_survey.txt' 99 97 100 98 # gauges - used in get_timeseries.py 101 gauge_name = 'perth.csv'102 gauge_name2 = 'thinned_MGA50.csv'103 104 # BOUNDING POLYGON - used in build_boundary.py and run_ perth.py respectively99 #gauge_name = 'onslow.csv' 100 #gauge_name2 = 'thinned_MGA50.csv' 101 102 # BOUNDING POLYGON - used in build_boundary.py and run_onslow.py respectively 105 103 # NOTE: when files are put together the points must be in sequence - for ease go clockwise! 106 # Check the run_ perth.py for boundary_tags104 # Check the run_onslow.py for boundary_tags 107 105 # thinned ordering file from Hazard Map: format is index,latitude,longitude (with title) 108 106 order_filename = 'thinned_boundary_ordering.csv' … … 115 113 # Output filename for elevation 116 114 # this is a combination of all the data (utilisied in build_boundary) 117 combined_name =' perth_combined_elevation'118 combined_smaller_name = ' perth_combined_elevation_smaller'115 combined_name ='onslow_combined_elevation' 116 combined_smaller_name = 'onslow_combined_elevation_smaller' 119 117 120 118 #------------------------------------------------------------------------------ … … 137 135 onshore_in_dir_name = topographies_in_dir + onshore_name 138 136 island_in_dir_name = topographies_in_dir + island_name 139 island_in_dir_name1 = topographies_in_dir + island_name1140 island_in_dir_name2 = topographies_in_dir + island_name2141 island_in_dir_name3 = topographies_in_dir + island_name3142 137 coast_in_dir_name = topographies_in_dir + coast_name 143 138 offshore_in_dir_name = topographies_in_dir + offshore_name … … 145 140 offshore_in_dir_name2 = topographies_in_dir + offshore_name2 146 141 offshore_in_dir_name3 = topographies_in_dir + offshore_name3 142 offshore_in_dir_name4 = topographies_in_dir + offshore_name4 147 143 148 144 # where the output data sits 149 145 onshore_dir_name = topographies_dir + onshore_name 150 146 island_dir_name = topographies_dir + island_name 151 island_dir_name1 = topographies_dir + island_name1152 island_dir_name2 = topographies_dir + island_name2153 island_dir_name3 = topographies_dir + island_name3154 147 coast_dir_name = topographies_dir + coast_name 155 148 offshore_dir_name = topographies_dir + offshore_name … … 157 150 offshore_dir_name2 = topographies_dir + offshore_name2 158 151 offshore_dir_name3 = topographies_dir + offshore_name3 152 offshore_dir_name4 = topographies_dir + offshore_name4 159 153 160 154 # where the combined elevation file sits … … 162 156 combined_smaller_name_dir = topographies_dir + combined_smaller_name 163 157 164 # where the mesh sits (this is created during the run_ perth.py)158 # where the mesh sits (this is created during the run_onslow.py) 165 159 meshes_dir_name = meshes_dir + scenario_name+'.msh' 166 160 … … 168 162 order_filename_dir = boundaries_dir + order_filename 169 163 170 # where the landward points of boundary extent sit (this is used within run_ perth.py)164 # where the landward points of boundary extent sit (this is used within run_onslow.py) 171 165 landward_dir = boundaries_dir + landward 172 166 … … 176 170 177 171 # where the directory of the output filename sits 178 output_build_time_dir = output_dir+build_time+dir_comment+sep #used for build_ perth.py179 output_run_time_dir = output_dir+run_time+dir_comment+sep #used for run_ perth.py172 output_build_time_dir = output_dir+build_time+dir_comment+sep #used for build_onslow.py 173 output_run_time_dir = output_dir+run_time+dir_comment+sep #used for run_onslow.py 180 174 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 181 175 182 176 #w here the directory of the gauges sit 183 gauges_dir_name = gauges_dir + gauge_name #used for get_timeseries.py184 gauges_dir_name2 = gauges_dir + gauge_name2 #used for get_timeseries.py177 #gauges_dir_name = gauges_dir + gauge_name #used for get_timeseries.py 178 #gauges_dir_name2 = gauges_dir + gauge_name2 #used for get_timeseries.py 185 179 186 180 #------------------------------------------------------------------------------ … … 189 183 190 184 #Land, to set the initial stage/water to be offcoast only 191 poly_mainland = read_polygon(polygons_dir+'initial_condition.csv') 185 poly_mainland = read_polygon(polygons_dir+'initial_conditions_mainland.csv') 186 187 #Ocean 188 poly_ocean = read_polygon(polygons_dir+'initial_conditions_ocean.csv') 192 189 193 190 # Initial bounding polygon for data clipping … … 195 192 res_poly_all = 100000*res_factor 196 193 197 # Area of Interest 1 ( Fremantle)198 poly_aoi1 = read_polygon(polygons_dir+' CBD_coastal.csv')194 # Area of Interest 1 (Onslow) 195 poly_aoi1 = read_polygon(polygons_dir+'aoi.csv') 199 196 res_aoi1 = 500*res_factor 200 197 201 # Area of Interest 2 (Rockingham) 202 poly_aoi2 = read_polygon(polygons_dir+'rockingham_penguin.csv') 203 res_aoi2 = 500*res_factor 204 205 # Area of Interest 2 (garden Island) 206 poly_aoi2a = read_polygon(polygons_dir+'garden.csv') 207 res_aoi2a= 500*res_factor 208 209 # Area of Interest 3 (geordie bay - record of tsunami impact) 210 poly_aoi3 = read_polygon(polygons_dir+'geordie_bay.csv') 211 res_aoi3 = 500*res_factor 212 213 # Area of Interest 4 (sorrento - record of tsunami impact) 214 poly_aoi4 = read_polygon(polygons_dir+'sorrento_gauge.csv') 215 res_aoi4 = 500*res_factor 216 217 # Area of Significance 1 (Garden Island and sand bank infront of Rockingham) 218 poly_aos1 = read_polygon(polygons_dir+'garden_rockingham.csv') 198 # Area of Significance 1 (Onslow) 199 poly_aos1 = read_polygon(polygons_dir+'aos.csv') 219 200 res_aos1 = 1000*res_factor 220 201 221 # Area of Significance 2 (incorporate coastline of rottnest)222 poly_aos2 = read_polygon(polygons_dir+'rottnest_external.csv')223 res_aos2 = 1000*res_factor224 225 # Refined areas226 # Polygon designed to incorporate dredged area from Fremantle to227 # Rockingham as the steep incline was making the elevation go to 0228 poly_aos3 = read_polygon(polygons_dir+'DredgeArea.csv')229 res_aos3 = 1000*res_factor230 231 202 # Shallow water 1 232 poly_sw1 = read_polygon(polygons_dir+' internal_h20mORd3km.csv')203 poly_sw1 = read_polygon(polygons_dir+'shallow_water.csv') 233 204 res_sw1 = 25000*res_factor 234 205 235 # Deep water (land of Rottnest, ANUGA does not do donuts!)236 poly_dw1 = read_polygon(polygons_dir+'rottnest_internal.csv')237 res_dw1 = 100000*res_factor238 239 206 # Combined all regions, must check that all are included! 240 interior_regions = [[poly_aoi1,res_aoi1],[poly_aoi2,res_aoi2] 241 ,[poly_aoi2a,res_aoi2a],[poly_aoi3,res_aoi3] 242 ,[poly_aoi4,res_aoi4],[poly_aos1,res_aos1] 243 ,[poly_aos2,res_aos2],[poly_aos3,res_aos3] 244 ,[poly_sw1,res_sw1], [poly_dw1,res_dw1]] 207 interior_regions = [[poly_aoi1,res_aoi1],[poly_aos1,res_aos1] 208 ,[poly_sw1,res_sw1]] 245 209 246 210 … … 253 217 #------------------------------------------------------------------------------ 254 218 255 # Geordie Bay extract ascii grid256 xminGeordie = 358000257 xmaxGeordie = 362000258 yminGeordie = 6458500259 ymaxGeordie = 6461000260 261 # Sorrento extract ascii grid262 xminSorrento = 379000263 xmaxSorrento = 382500264 yminSorrento = 6477000265 ymaxSorrento = 6480000266 267 # Fremantle extract ascii grid268 xminFremantle = 376000269 xmaxFremantle = 388000270 yminFremantle = 6449000271 ymaxFremantle = 6461000272 273 # Rockingham extract ascii grid274 xminRockingham = 373500275 xmaxRockingham = 385500276 yminRockingham = 6424000277 ymaxRockingham = 6433000278 219 ###Geordie Bay extract ascii grid 220 ##xminGeordie = 358000 221 ##xmaxGeordie = 362000 222 ##yminGeordie = 6458500 223 ##ymaxGeordie = 6461000 224 ## 225 ###Sorrento extract ascii grid 226 ##xminSorrento = 379000 227 ##xmaxSorrento = 382500 228 ##yminSorrento = 6477000 229 ##ymaxSorrento = 6480000 230 ## 231 ###Fremantle extract ascii grid 232 ##xminFremantle = 376000 233 ##xmaxFremantle = 388000 234 ##yminFremantle = 6449000 235 ##ymaxFremantle = 6461000 236 ## 237 ###Rockingham extract ascii grid 238 ##xminRockingham = 373500 239 ##xmaxRockingham = 385500 240 ##yminRockingham = 6424000 241 ##ymaxRockingham = 6433000 242
Note: See TracChangeset
for help on using the changeset viewer.