source: production/sydney_2006/project.py @ 2293

Last change on this file since 2293 was 2293, checked in by sexton, 18 years ago

Updated files for Sydney tsunami test case (better interior regions, change to slump parameters)

File size: 9.4 KB
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2Also includes origin for slump scenario.
3"""
4
5
6from os import sep
7from os.path import expanduser
8import sys
9
10#Making assumptions about the location of scenario data
11scenario_dir_name = 'sydney_tsunami_scenario_2006'
12# original 100m data
13#basename = 'sydney_2006_100' # get from Neil/Ingo (DEM or topo data)
14# revised 100m data
15coarsename = 'bathyland100' # get from Neil/Ingo (DEM or topo data)
16# 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)
19finename = 'bathy_dem25' # get from Neil/Ingo (DEM or topo data) Wed 25 Jan
20
21# creating easting and northing max and min for fine data - region of interest
22eastingmin = 332090
23eastingmax = 347500
24northingmin = 6246250
25northingmax = 6264100
26#northingmax = 6280100
27
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
35eminviz = 318000
36emaxviz = 351000
37nminviz = 6231000
38nmaxviz = 6283000
39   
40basename = 'slump'
41
42if sys.platform == 'win32':
43    home = '..\..\..\..'     #Sandpit's parent dir
44else:   
45    home = expanduser('~')
46
47
48#Derive subdirectories and filenames
49meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
50datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
51outputdir = home+sep+scenario_dir_name+sep+'output'+sep
52#boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
53
54meshname = meshdir + basename
55coarsedemname = datadir + coarsename
56finedemname = datadir + finename
57combineddemname = datadir + 'sydneytopo'
58#boundaryname = boundarydir + boundary_basename
59outputname = outputdir + basename  #Used by post processing
60#newoutputname = outputdir+'Combined Data v1'+sep+'d400'+sep+basename
61gauge_filename = outputdir + 'sydney_gauges.xya'
62
63#Georeferencing
64from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees
65
66#Origin of existing dem (FIXME: Temporary measure)
67#x0_origin = 314036 #original 100m data
68#y0_origin = 6224951
69refzone = 56
70x0_origin = 314036.58727982 #revised 100m and 25m data
71y0_origin = 6224951.2960092
72mesh_origin = (refzone, x0_origin, y0_origin)  # input from Neil's data
73
74# define clipping polygon
75south = degminsec2decimal_degrees(-34,05,0)
76north = degminsec2decimal_degrees(-33,33,0)
77west = degminsec2decimal_degrees(151,1,0)
78east = degminsec2decimal_degrees(151,30,0)
79p0 = [south, west]
80p1 = [south, east]
81p2 = [north, east]
82p3 = [north, west]
83   
84polygonall = [p0, p1, p2, p3]
85
86dsouth = degminsec2decimal_degrees(-34,05,0)
87dnorth = degminsec2decimal_degrees(-33,33,0)
88dnorth1 = degminsec2decimal_degrees(-33,40,0)
89dnorth2 = degminsec2decimal_degrees(-33,58,30)
90dnorth3 = degminsec2decimal_degrees(-33,46,0)
91dwest = degminsec2decimal_degrees(151,2,20)
92deast1 = degminsec2decimal_degrees(151,20,0)
93deast2 = degminsec2decimal_degrees(151,48,0)
94deast3 = degminsec2decimal_degrees(151,10,0)
95deast4 = degminsec2decimal_degrees(151,9,0)
96
97dp0 = [dsouth, dwest]
98dp1 = [dsouth, deast1]
99dp2 = [dnorth2, deast2]
100dp3 = [dnorth1, deast2]
101dp4 = [dnorth, deast1]
102dp5 = [dnorth, deast4]
103dp6 = [dnorth3, deast3]
104dp7 = [dnorth3, dwest]
105dp8 = [dnorth, dwest]
106   
107#diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp5, dp6, dp7]
108diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp5, dp6, dp7]
109# to put chunk back in
110#diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp8]
111
112#Interior regions - the Harbour - take 2
113harbour_1x = degminsec2decimal_degrees(-33,51,0)
114harbour_1y = degminsec2decimal_degrees(151,2,30)
115harbour_12x = degminsec2decimal_degrees(-33,51,0)
116harbour_12y = degminsec2decimal_degrees(151,5,0)
117harbour_13x = degminsec2decimal_degrees(-33,52,15)
118harbour_13y = degminsec2decimal_degrees(151,5,0)
119harbour_2x = degminsec2decimal_degrees(-33,53,0)
120harbour_2y = degminsec2decimal_degrees(151,17,20)
121harbour_3x = degminsec2decimal_degrees(-33,47,0)
122harbour_3y = degminsec2decimal_degrees(151,20,30)
123#harbour_4x = degminsec2decimal_degrees(-33,48,0)
124harbour_4x = degminsec2decimal_degrees(-33,47,50)
125harbour_4y = degminsec2decimal_degrees(151,8,10)
126#harbour_5x = degminsec2decimal_degrees(-33,49,0)
127harbour_5x = degminsec2decimal_degrees(-33,48,10)
128harbour_5y = degminsec2decimal_degrees(151,8,0)
129harbour_6x = degminsec2decimal_degrees(-33,49,0)
130harbour_6y = degminsec2decimal_degrees(151,2,30)
131harbour_7x = degminsec2decimal_degrees(-33,34,30)
132harbour_7y = degminsec2decimal_degrees(151,20,20)
133harbour_8x = degminsec2decimal_degrees(-33,33,30)
134harbour_8y = degminsec2decimal_degrees(151,15,0)
135harbour_9x = degminsec2decimal_degrees(-33,45,30)
136harbour_9y = degminsec2decimal_degrees(151,15,0)
137harbour_10x = degminsec2decimal_degrees(-33,45,10)
138harbour_10y = degminsec2decimal_degrees(151,11,40)
139harbour_11x = degminsec2decimal_degrees(-33,45,10)
140harbour_11y = degminsec2decimal_degrees(151,11,40)
141harbour_14x = degminsec2decimal_degrees(-33,49,10)
142harbour_14y = degminsec2decimal_degrees(151,11,40)
143harbour_15x = degminsec2decimal_degrees(-33,48,55)
144harbour_15y = degminsec2decimal_degrees(151,2,30)
145
146k02 = [harbour_1x, harbour_1y]
147k12 = [harbour_2x, harbour_2y]
148k22 = [harbour_3x, harbour_3y]
149k32 = [harbour_4x, harbour_4y]
150k42 = [harbour_5x, harbour_5y]
151k52 = [harbour_6x, harbour_6y]
152k62 = [harbour_7x, harbour_7y]
153k72 = [harbour_8x, harbour_8y]
154k82 = [harbour_9x, harbour_9y]
155k92 = [harbour_10x, harbour_10y]
156k102 = [harbour_11x, harbour_11y]
157k112 = [harbour_12x, harbour_12y]
158k122 = [harbour_13x, harbour_13y]
159k132 = [harbour_14x, harbour_14y]
160k142 = [harbour_15x, harbour_15y]
161
162#harbour_polygon_2 = [k02, k112, k122, k12, k22, k62, k72, k82, k92, k102, k32, k42, k52]
163#harbour_polygon_2 = [k122, k12, k22, k62, k72, k102] #worked
164harbour_polygon_2 = [k02, k112, k122, k12, k22, k62, k72, k82, k102, k42, k52] #worked
165
166#Interior region - Botany Bay - take 2
167bb_1x = degminsec2decimal_degrees(-34,3,0)
168bb_1y = degminsec2decimal_degrees(151,2,30)
169bb_10x = degminsec2decimal_degrees(-34,3,0)
170bb_10y = degminsec2decimal_degrees(151,8,0)
171bb_2x = degminsec2decimal_degrees(-34,3,0)
172bb_2y = degminsec2decimal_degrees(151,14,0)
173bb_3x = degminsec2decimal_degrees(-33,53,30)
174bb_3y = degminsec2decimal_degrees(151,17,20)
175bb_4x = degminsec2decimal_degrees(-33,53,0)
176bb_4y = degminsec2decimal_degrees(151,8,0)
177bb_5x = degminsec2decimal_degrees(-33,57,30)
178bb_5y = degminsec2decimal_degrees(151,8,0)
179bb_6x = degminsec2decimal_degrees(-33,57,30)
180bb_6y = degminsec2decimal_degrees(151,2,30) 
181bb_7x = degminsec2decimal_degrees(-33,53,30)
182bb_7y = degminsec2decimal_degrees(151,12,30) 
183bb_8x = degminsec2decimal_degrees(-33,55,20)
184bb_8y = degminsec2decimal_degrees(151,8,0) 
185bb_9x = degminsec2decimal_degrees(-33,55,20)
186bb_9y = degminsec2decimal_degrees(151,12,30) 
187
188j02 = [bb_1x, bb_1y]
189j12 = [bb_2x, bb_2y]
190j22 = [bb_3x, bb_3y]
191j32 = [bb_4x, bb_4y]
192j42 = [bb_5x, bb_5y]
193j52 = [bb_6x, bb_6y]
194j62 = [bb_7x, bb_7y]
195j72 = [bb_8x, bb_8y]
196j82 = [bb_9x, bb_9y]
197j92 = [bb_10x, bb_10y]
198
199botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42, j02]
200#botanybay_polygon_2 = [j02, j12, j22, j32, j42, j52] # worked
201
202# this section sets up source origin for slump scenario
203# close to harbour opening (343000,6255000)
204# x0 = 28964
205# y0 = 30049
206# around 10km harbour opening (353000,6255000)
207#x0 = 38964
208#y0 = 30049
209# around 18km across from harbour(361000,6255000)
210#x0 = 46964
211#y0 = 30049
212# around 42km across from harbour(385000,6255000)
213x0 = 28964 + 42000
214y0 = 30049
215# close to botany bay opening (340000,6236000)
216# x0 = 25964
217# y0 = 11049
218# around 10km from botany bay opening (350000,6236000)
219# x0 = 35964
220# y0 = 11049
221# around 21km from botany bay opening (361000,6236000)
222#x0 = 46964
223#y0 = 11049
224
225# not used for sydney scenario, original interior regions listed though
226# setting up problem area for doing just around the harbour
227hsouth = degminsec2decimal_degrees(-33,54,0)
228hnorth = degminsec2decimal_degrees(-33,48,0)
229hwest = degminsec2decimal_degrees(151,0,0)
230heast = degminsec2decimal_degrees(151,30,0)
231
232hp0 = [hsouth, hwest]
233hp1 = [hsouth, heast]
234hp2 = [hnorth, heast]
235hp3 = [hnorth, hwest]
236polygon_h = [hp0, hp1, hp2, hp3]
237
238#Interior regions - the Harbour - take 1
239harbour_south = degminsec2decimal_degrees(-33,53,0)
240harbour_north = degminsec2decimal_degrees(-33,47,0)
241harbour_west = degminsec2decimal_degrees(151,5,0)
242harbour_east = degminsec2decimal_degrees(151,19,0)
243
244#harbour_south1 = degminsec2decimal_degrees(-33,53,0)
245#harbour_south2 = degminsec2decimal_degrees(-33,52,0)
246#harbour_north1 = degminsec2decimal_degrees(-33,45,0)
247#harbour_north2 = degminsec2decimal_degrees(-33,48,0)
248#harbour_west = degminsec2decimal_degrees(151,5,0)
249#harbour_east = degminsec2decimal_degrees(151,19,0)
250
251k0 = [harbour_south, harbour_west]
252k1 = [harbour_south, harbour_east]
253k2 = [harbour_north, harbour_east]
254k3 = [harbour_north, harbour_west]   
255
256harbour_polygon = [k0, k1, k2, k3]
257
258# setting up problem area for doing just around Botany Bay
259bsouth = degminsec2decimal_degrees(-33,56,0)
260bnorth = degminsec2decimal_degrees(-34,3,0)
261bwest = degminsec2decimal_degrees(151,0,0)
262beast = degminsec2decimal_degrees(151,30,0)
263
264bp0 = [bsouth, bwest]
265bp1 = [bsouth, beast]
266bp2 = [bnorth, beast]
267bp3 = [bnorth, bwest]
268polygon_bb = [bp0, bp1, bp2, bp3]
269
270#Interior region - Botany Bay - take 1
271botanybay_south = degminsec2decimal_degrees(-33,58,0)
272botanybay_north = degminsec2decimal_degrees(-34,1,0)
273botanybay_west = degminsec2decimal_degrees(151,5,0)
274botanybay_east = degminsec2decimal_degrees(151,18,0)
275
276j0 = [botanybay_south, botanybay_west]
277j1 = [botanybay_south, botanybay_east]
278j2 = [botanybay_north, botanybay_east]
279j3 = [botanybay_north, botanybay_west]   
280
281botanybay_polygon = [j0, j1, j2, j3]
Note: See TracBrowser for help on using the repository browser.