Changeset 2403 for production/sydney_2006/project.py
- Timestamp:
- Feb 14, 2006, 3:29:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/sydney_2006/project.py
r2353 r2403 2 2 Also includes origin for slump scenario. 3 3 """ 4 5 4 6 5 from os import sep … … 10 9 #Making assumptions about the location of scenario data 11 10 scenario_dir_name = 'sydney_tsunami_scenario_2006' 12 # original 100m data13 #basename = 'sydney_2006_100' # get from Neil/Ingo (DEM or topo data)14 11 # revised 100m data 15 12 coarsename = 'bathyland100' # get from Neil/Ingo (DEM or topo data) 16 13 # revised 25m data 17 #finename = 'bathyland25' # get from Neil/Ingo (DEM or topo data)18 #finename = 'bathyland100' # get from Neil/Ingo (DEM or topo data)19 14 finename = 'bathy_dem25' # get from Neil/Ingo (DEM or topo data) Wed 25 Jan 20 15 … … 24 19 northingmin = 6246250 25 20 northingmax = 6264100 26 #northingmax = 628010027 21 28 # creating easting and northing max and min for export viz purposes 29 #eminviz = 332000 30 #emaxviz = 350000 31 #nminviz = 6231000 32 #nmaxviz = 6283000 33 34 # version2 22 # creating easting and northing max and min for export viz purposes 35 23 eminviz = 318000 36 24 emaxviz = 351000 37 25 nminviz = 6231000 38 26 nmaxviz = 6283000 39 # for harbour region40 #nminviz = 624800041 #nmaxvix = 627000042 # for botany bay region43 #nmaxviz = 624800044 #nminvix = 628300045 27 46 basename = 'slump _ole'28 basename = 'slump' 47 29 48 30 if sys.platform == 'win32': … … 56 38 datadir = home+sep+scenario_dir_name+sep+'topographies'+sep 57 39 outputdir = home+sep+scenario_dir_name+sep+'output'+sep 58 #boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep59 40 60 41 meshname = meshdir + basename … … 62 43 finedemname = datadir + finename 63 44 combineddemname = datadir + 'sydneytopo' 64 #boundaryname = boundarydir + boundary_basename65 45 outputname = outputdir + basename #Used by post processing 66 #newoutputname = outputdir+'Combined Data v1'+sep+'d400'+sep+basename67 46 gauge_filename = outputdir + 'sydney_gauges.xya' 68 47 gauge_outname = outputdir + 'gauges_max_output.xya' 69 48 70 49 #Georeferencing 71 #from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees72 50 from coordinate_transforms.redfearn import degminsec2decimal_degrees 73 51 74 #Origin of existing dem (FIXME: Temporary measure)75 #x0_origin = 314036 #original 100m data76 #y0_origin = 622495177 #refzone = 5678 #x0_origin = 314036.58727982 #revised 100m and 25m data79 #y0_origin = 6224951.296009280 #mesh_origin = (refzone, x0_origin, y0_origin) # input from Neil's data81 82 52 # define clipping polygon 83 south = degminsec2decimal_degrees(-34,05,0)84 north = degminsec2decimal_degrees(-33,33,0)85 west = degminsec2decimal_degrees(151,1,0)86 east = degminsec2decimal_degrees(151,30,0)87 p0 = [south, west]88 p1 = [south, east]89 p2 = [north, east]90 p3 = [north, west]91 92 polygonall = [p0, p1, p2, p3]93 94 53 dsouth = degminsec2decimal_degrees(-34,05,0) 95 54 dnorth = degminsec2decimal_degrees(-33,33,0) … … 113 72 dp8 = [dnorth, dwest] 114 73 115 #diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp5, dp6, dp7]116 74 diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp5, dp6, dp7] 117 # to put chunk back in118 #diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp8]119 75 120 #Interior regions - the Harbour - take 276 #Interior regions - the Harbour 121 77 harbour_1x = degminsec2decimal_degrees(-33,51,0) 122 78 harbour_1y = degminsec2decimal_degrees(151,2,30) … … 129 85 harbour_3x = degminsec2decimal_degrees(-33,47,0) 130 86 harbour_3y = degminsec2decimal_degrees(151,20,30) 131 #harbour_4x = degminsec2decimal_degrees(-33,48,0)132 87 harbour_4x = degminsec2decimal_degrees(-33,47,50) 133 88 harbour_4y = degminsec2decimal_degrees(151,8,10) 134 #harbour_5x = degminsec2decimal_degrees(-33,49,0)135 89 harbour_5x = degminsec2decimal_degrees(-33,48,10) 136 90 harbour_5y = degminsec2decimal_degrees(151,8,0) … … 139 93 harbour_7x = degminsec2decimal_degrees(-33,34,30) 140 94 harbour_7y = degminsec2decimal_degrees(151,20,20) 141 #harbour_8x = degminsec2decimal_degrees(-33,33,30)142 #harbour_8y = degminsec2decimal_degrees(151,15,0)143 95 harbour_8x = degminsec2decimal_degrees(-33,33,30) 144 96 harbour_8y = degminsec2decimal_degrees(151,17,0) 145 #harbour_9x = degminsec2decimal_degrees(-33,45,30)146 #harbour_9y = degminsec2decimal_degrees(151,15,0)147 97 harbour_9x = degminsec2decimal_degrees(-33,45,30) 148 98 harbour_9y = degminsec2decimal_degrees(151,17,0) … … 172 122 k142 = [harbour_15x, harbour_15y] 173 123 174 #harbour_polygon_2 = [k02, k112, k122, k12, k22, k62, k72, k82, k92, k102, k32, k42, k52]175 #harbour_polygon_2 = [k122, k12, k22, k62, k72, k102] #worked176 124 harbour_polygon_2 = [k02, k112, k122, k12, k22, k62, k72, k82, k102, k42, k52] #worked 177 125 178 #Interior region - Botany Bay - take 2126 #Interior region - Botany Bay 179 127 bb_1x = degminsec2decimal_degrees(-34,3,0) 180 128 bb_1y = degminsec2decimal_degrees(151,2,30) … … 210 158 211 159 botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42] # worked 212 #botanybay_polygon_2 = [j02, j12, j22, j32, j42, j52] # worked213 160 214 # this section sets up source origin for slump scenario215 # close to harbour opening (343000,6255000)216 # x0 = 28964217 # y0 = 30049218 # around 10km harbour opening (353000,6255000)219 #x0 = 38964220 #y0 = 30049221 # around 18km across from harbour(361000,6255000)222 #x0 = 46964223 #y0 = 30049224 161 # around 42km across from harbour(385000,6255000) 225 x0 = 28964 + 42000 226 y0 = 30049 227 228 #revised 100m and 25m data 229 slump_origin = [x0+314036.58727982, y0+6224951.2960092] #Absolute UTM 230 231 232 # close to botany bay opening (340000,6236000) 233 # x0 = 25964 234 # y0 = 11049 235 # around 10km from botany bay opening (350000,6236000) 236 # x0 = 35964 237 # y0 = 11049 238 # around 21km from botany bay opening (361000,6236000) 239 #x0 = 46964 240 #y0 = 11049 241 242 # not used for sydney scenario, original interior regions listed though 243 # setting up problem area for doing just around the harbour 244 hsouth = degminsec2decimal_degrees(-33,54,0) 245 hnorth = degminsec2decimal_degrees(-33,48,0) 246 hwest = degminsec2decimal_degrees(151,0,0) 247 heast = degminsec2decimal_degrees(151,30,0) 248 249 hp0 = [hsouth, hwest] 250 hp1 = [hsouth, heast] 251 hp2 = [hnorth, heast] 252 hp3 = [hnorth, hwest] 253 polygon_h = [hp0, hp1, hp2, hp3] 254 255 #Interior regions - the Harbour - take 1 256 harbour_south = degminsec2decimal_degrees(-33,53,0) 257 harbour_north = degminsec2decimal_degrees(-33,47,0) 258 harbour_west = degminsec2decimal_degrees(151,5,0) 259 harbour_east = degminsec2decimal_degrees(151,19,0) 260 261 #harbour_south1 = degminsec2decimal_degrees(-33,53,0) 262 #harbour_south2 = degminsec2decimal_degrees(-33,52,0) 263 #harbour_north1 = degminsec2decimal_degrees(-33,45,0) 264 #harbour_north2 = degminsec2decimal_degrees(-33,48,0) 265 #harbour_west = degminsec2decimal_degrees(151,5,0) 266 #harbour_east = degminsec2decimal_degrees(151,19,0) 267 268 k0 = [harbour_south, harbour_west] 269 k1 = [harbour_south, harbour_east] 270 k2 = [harbour_north, harbour_east] 271 k3 = [harbour_north, harbour_west] 272 273 harbour_polygon = [k0, k1, k2, k3] 274 275 # setting up problem area for doing just around Botany Bay 276 bsouth = degminsec2decimal_degrees(-33,56,0) 277 bnorth = degminsec2decimal_degrees(-34,3,0) 278 bwest = degminsec2decimal_degrees(151,0,0) 279 beast = degminsec2decimal_degrees(151,30,0) 280 281 bp0 = [bsouth, bwest] 282 bp1 = [bsouth, beast] 283 bp2 = [bnorth, beast] 284 bp3 = [bnorth, bwest] 285 polygon_bb = [bp0, bp1, bp2, bp3] 286 287 #Interior region - Botany Bay - take 1 288 botanybay_south = degminsec2decimal_degrees(-33,58,0) 289 botanybay_north = degminsec2decimal_degrees(-34,1,0) 290 botanybay_west = degminsec2decimal_degrees(151,5,0) 291 botanybay_east = degminsec2decimal_degrees(151,18,0) 292 293 j0 = [botanybay_south, botanybay_west] 294 j1 = [botanybay_south, botanybay_east] 295 j2 = [botanybay_north, botanybay_east] 296 j3 = [botanybay_north, botanybay_west] 297 298 botanybay_polygon = [j0, j1, j2, j3] 162 #x0 = 28964 + 42000 163 #y0 = 30049 164 #slump_origin = [x0+314036.58727982, y0+6224951.2960092] #Absolute UTM 165 slump_origin = [385000.0, 6255000.0] #Absolute UTM
Note: See TracChangeset
for help on using the changeset viewer.