source: anuga_work/production/karratha_2005/project.py @ 4072

Last change on this file since 4072 was 3535, checked in by duncan, 18 years ago

change imports so reflect the new structure

File size: 5.9 KB
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2"""
3
4#Assume INUNDATIONHOME environment variable points to the parent directory of the source data
5
6from os import sep, environ
7from os.path import expanduser
8import sys
9
10#Making assumptions about the location of scenario data
11scenario_dir_name = 'karratha_tsunami_scenario_2005'
12#basename = 'karratha_100m'
13basename = 'elevation50m'
14boundary_basename = 'SU-AU'
15
16
17if sys.platform == 'win32':
18    home = environ["INUNDATIONHOME"]     #Sandpit's parent dir   
19    #home = '..\..\..\..\..'     #Sandpit's parent dir
20else:   
21    home = expanduser('~')
22
23
24#Derive subdirectories and filenames
25meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
26datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
27outputdir = home+sep+scenario_dir_name+sep+'output'+sep
28boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
29
30meshname = meshdir + basename
31demname = datadir + basename
32boundaryname = boundarydir + boundary_basename
33outputname = outputdir + basename  #Used by post processing
34
35#gauge_filename = 'all_bld_ind.csv'
36gauge_filename = 'karratha_buildings_23112005.csv'
37
38
39#Georeferencing
40from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees
41
42#Origin of existing dem (FIXME: Temporary measure)
43#mesh_origin = (50, 421544.35127423, 7677669.5257159)  #250m
44mesh_origin = (50, 420468.31429902, 7677669.5257159)  #100m
45
46
47#south = degminsec2decimal_degrees(-20,45,0)
48#north = degminsec2decimal_degrees(-20,15,0)
49#west = degminsec2decimal_degrees(116,30,0)
50#east = degminsec2decimal_degrees(117,0,0)
51
52south = degminsec2decimal_degrees(-20,55,0)
53north = degminsec2decimal_degrees(-20,15,0)
54west = degminsec2decimal_degrees(116,17,0)
55east = degminsec2decimal_degrees(117,10,0)
56
57p0 = [south, degminsec2decimal_degrees(116,32,0)]
58p1 = [south, west]
59p2 = [degminsec2decimal_degrees(-20,23,0), west]
60p3 = [north, degminsec2decimal_degrees(116,45,0)]
61p4 = [north, degminsec2decimal_degrees(117,0,0)]
62p5 = [p2[0], degminsec2decimal_degrees(117,8,0)]
63p6 = [degminsec2decimal_degrees(-20,30,0), east]
64p7 = [degminsec2decimal_degrees(-20,38,0), east]
65p8 = [south, east]
66   
67polygon = [p0, p1, p2, p3, p4, p5, p6, p7, p8]
68refzone = 50
69
70
71#Interior regions
72karratha_south = degminsec2decimal_degrees(-20,44,0)
73karratha_north = degminsec2decimal_degrees(-20,42,0)
74karratha_west = degminsec2decimal_degrees(116,48,0)
75karratha_east = degminsec2decimal_degrees(116,53,30)
76
77k0 = [karratha_south, karratha_west]
78k1 = [karratha_south, karratha_east]
79k2 = [karratha_north, karratha_east]
80k3 = [karratha_north, karratha_west]   
81
82karratha_polygon = [k0, k1, k2, k3]
83
84
85#Interior regions
86dampier_south = degminsec2decimal_degrees(-20,40,0)
87dampier_north = degminsec2decimal_degrees(-20,38,10)
88dampier_west = degminsec2decimal_degrees(116,43,0)
89dampier_east = degminsec2decimal_degrees(116,45,0)
90
91d0 = [dampier_south, dampier_west]
92d1 = [dampier_south, dampier_east]
93d2 = [dampier_north, dampier_east]
94d3 = [dampier_north, dampier_west]   
95
96dampier_polygon = [d0, d1, d2, d3]
97
98
99#Interior regions
100refinery_south = degminsec2decimal_degrees(-20,37,50)
101refinery_north = degminsec2decimal_degrees(-20,36,0)
102refinery_west = degminsec2decimal_degrees(116,44,0)
103refinery_east = degminsec2decimal_degrees(116,46,10)
104
105d0 = [refinery_south, refinery_west]
106d1 = [refinery_south, refinery_east]
107d2 = [refinery_north, refinery_east]
108d3 = [refinery_north, refinery_west]   
109
110refinery_polygon = [d0, d1, d2, d3]
111
112
113#Interior region around 468899, 7715177:
114#lat (-20, 39, 44.93753), lon (116, 42, 5.09106)
115
116point_south = degminsec2decimal_degrees(-20,39,46)
117point_north = degminsec2decimal_degrees(-20,39,42)
118point_west = degminsec2decimal_degrees(116,42,0)
119point_east = degminsec2decimal_degrees(116,42,10)
120
121d0 = [point_south, point_west]
122d1 = [point_south, point_east]
123d2 = [point_north, point_east]
124d3 = [point_north, point_west]   
125
126point_polygon = [d0, d1, d2, d3]
127
128
129#Neils areas around interesting points
130neil1_point1 = [degminsec2decimal_degrees(-20,35,34),
131                degminsec2decimal_degrees(116,45,18)]
132neil1_point2 = [degminsec2decimal_degrees(-20,36,15),
133                degminsec2decimal_degrees(116,46,18)]
134neil1_point3 = [degminsec2decimal_degrees(-20,35,9),
135                degminsec2decimal_degrees(116,47,17)]
136neil1_point4 = [degminsec2decimal_degrees(-20,34,26),
137                degminsec2decimal_degrees(116,46,17)]
138
139neil1_polygon = [neil1_point1, neil1_point2, neil1_point3, neil1_point4]
140
141
142
143neil2_point1 = [degminsec2decimal_degrees(-20,39,36),
144                degminsec2decimal_degrees(116,41,33)]
145neil2_point2 = [degminsec2decimal_degrees(-20,40,10),
146                degminsec2decimal_degrees(116,42,13)]
147neil2_point3 = [degminsec2decimal_degrees(-20,38,39),
148                degminsec2decimal_degrees(116,43,49)]
149neil2_point4 = [degminsec2decimal_degrees(-20,38,5),
150                degminsec2decimal_degrees(116,43,9)]
151
152neil2_polygon = [neil2_point1, neil2_point2, neil2_point3, neil2_point4]
153
154
155
156
157#Withnell bay
158wb_point1 = [degminsec2decimal_degrees(-20,35,34),
159                degminsec2decimal_degrees(116,45,18)]
160wb_point2 = [degminsec2decimal_degrees(-20,36,15),
161                degminsec2decimal_degrees(116,46,18)]
162wb_point3 = [degminsec2decimal_degrees(-20,35,9),
163                degminsec2decimal_degrees(116,47,17)]
164wb_point4 = [degminsec2decimal_degrees(-20,34,26),
165                degminsec2decimal_degrees(116,46,17)]
166
167wb_polygon = [wb_point1, wb_point2, wb_point3, wb_point4]
168
169
170
171
172#Larger Withnell bay
173lwb_point1 = [degminsec2decimal_degrees(-20,35,59),
174                degminsec2decimal_degrees(116,42,00)]
175lwb_point2 = [degminsec2decimal_degrees(-20,36,50),
176                degminsec2decimal_degrees(116,46,50)]
177lwb_point3 = [degminsec2decimal_degrees(-20,34,00),
178                degminsec2decimal_degrees(116,47,39)]
179lwb_point4 = [degminsec2decimal_degrees(-20,33,00),
180                degminsec2decimal_degrees(116,42,50)]
181
182lwb_polygon = [lwb_point1, lwb_point2, lwb_point3, lwb_point4]
Note: See TracBrowser for help on using the repository browser.