source: production/sydney_2006/project.py @ 2247

Last change on this file since 2247 was 2185, checked in by sexton, 19 years ago

Update project file for Sydney tsunami scenario to include additional interior region (and potential to change clipping regions)

File size: 3.1 KB
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2"""
3
4
5from os import sep
6from os.path import expanduser
7import sys
8
9#Making assumptions about the location of scenario data
10scenario_dir_name = 'sydney_tsunami_scenario_2006'
11basename = 'sydney_2006_100' # get from Neil (DEM or topo data)
12
13if sys.platform == 'win32':
14    home = '..\..\..\..'     #Sandpit's parent dir
15else:   
16    home = expanduser('~')
17
18
19#Derive subdirectories and filenames
20meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
21datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
22outputdir = home+sep+scenario_dir_name+sep+'output'+sep
23#boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
24
25meshname = meshdir + basename
26demname = datadir + basename
27#boundaryname = boundarydir + boundary_basename
28outputname = outputdir + basename  #Used by post processing
29
30
31#Georeferencing
32from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees
33
34#Origin of existing dem (FIXME: Temporary measure)
35mesh_origin = (56, 314036, 6224951)  # input from Neil's data
36
37# define clipping polygon
38#south = degminsec2decimal_degrees(-20,45,0)
39#north = degminsec2decimal_degrees(-20,15,0)
40#west = degminsec2decimal_degrees(116,30,0)
41#east = degminsec2decimal_degrees(117,0,0)
42
43south = degminsec2decimal_degrees(-34,05,0)
44north = degminsec2decimal_degrees(-33,45,0)
45west = degminsec2decimal_degrees(151,0,0)
46east = degminsec2decimal_degrees(151,30,0)
47
48p0 = [south, west]
49p1 = [south, east]
50p2 = [north, east]
51p3 = [north, west]
52   
53polygonall = [p0, p1, p2, p3]
54refzone = 56
55
56# setting up problem area for doing just around the harbour
57hsouth = degminsec2decimal_degrees(-33,54,0)
58hnorth = degminsec2decimal_degrees(-33,48,0)
59hwest = degminsec2decimal_degrees(151,0,0)
60heast = degminsec2decimal_degrees(151,30,0)
61
62hp0 = [hsouth, hwest]
63hp1 = [hsouth, heast]
64hp2 = [hnorth, heast]
65hp3 = [hnorth, hwest]
66polygon_h = [hp0, hp1, hp2, hp3]
67
68#Interior regions - the Harbour
69harbour_south = degminsec2decimal_degrees(-33,53,0)
70harbour_north = degminsec2decimal_degrees(-33,47,0)
71harbour_west = degminsec2decimal_degrees(151,5,0)
72harbour_east = degminsec2decimal_degrees(151,19,0)
73
74k0 = [harbour_south, harbour_west]
75k1 = [harbour_south, harbour_east]
76k2 = [harbour_north, harbour_east]
77k3 = [harbour_north, harbour_west]   
78
79harbour_polygon = [k0, k1, k2, k3]
80
81# setting up problem area for doing just around Botany Bay
82bsouth = degminsec2decimal_degrees(-33,56,0)
83bnorth = degminsec2decimal_degrees(-34,3,0)
84bwest = degminsec2decimal_degrees(151,0,0)
85beast = degminsec2decimal_degrees(151,30,0)
86
87bp0 = [bsouth, bwest]
88bp1 = [bsouth, beast]
89bp2 = [bnorth, beast]
90bp3 = [bnorth, bwest]
91polygon_bb = [bp0, bp1, bp2, bp3]
92
93#Interior region - Botany Bay
94botanybay_south = degminsec2decimal_degrees(-33,58,0)
95botanybay_north = degminsec2decimal_degrees(-34,1,0)
96botanybay_west = degminsec2decimal_degrees(151,5,0)
97botanybay_east = degminsec2decimal_degrees(151,18,0)
98
99j0 = [botanybay_south, botanybay_west]
100j1 = [botanybay_south, botanybay_east]
101j2 = [botanybay_north, botanybay_east]
102j3 = [botanybay_north, botanybay_west]   
103
104botanybay_polygon = [j0, j1, j2, j3]
105
Note: See TracBrowser for help on using the repository browser.