source: production/onslow_2006/project_new.py @ 3349

Last change on this file since 3349 was 2615, checked in by nick, 19 years ago

update onslow

File size: 3.1 KB
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2Also includes origin for slump scenario.
3"""
4
5from os import sep, environ
6from os.path import expanduser
7from utilities.polygon import read_polygon
8import sys
9
10from pmesh.create_mesh import convert_points_from_latlon_to_utm
11
12from coordinate_transforms.redfearn import degminsec2decimal_degrees
13
14from time import localtime, strftime
15
16from os import getcwd
17               
18#Making assumptions about the location of scenario data
19scenario_dir_name = 'onslow_tsunami_scenario_2006'
20
21# 250m data to be provided
22coarsename = 'onsl_bathydem250' # get from Neil/Ingo (DEM or topo data)
23
24# 30m data to be provided
25onshore_name = 'onslow_onshore_30m_dted' # get from Neil/Ingo (DEM or topo data)
26
27offshore_name = 'onslow_offshore_points'
28
29boundary_basename = 'SU-AU'
30
31#swollen/ all data output
32basename = 'source'
33
34codename = 'project.py'
35
36if sys.platform == 'win32':
37    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
38else:   
39    home = expanduser('~')
40
41#Derive subdirectories and filenames
42timedir = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
43outputdir = home+sep+scenario_dir_name+sep+'output'+sep+timedir+sep
44meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
45datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
46
47polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep
48boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
49
50codedir = getcwd()+sep
51                               
52codedirname = codedir + 'project.py'
53
54meshname = meshdir + basename
55
56coarsedemname = datadir + coarsename
57
58onshore_dem_name = datadir + onshore_name
59
60offshore_dem_name = datadir + offshore_name
61
62combined_dem_name = datadir + 'onslow_combined_elevation'
63
64outputname = outputdir + basename  #Used by post processing
65
66#!gauge_filename = outputdir + 'onslow_gauges.xya'
67#!gauge_outname = outputdir + 'gauges_max_output.xya'
68
69# clipping region for fine elevation data
70eastingmin = 250000
71eastingmax = 330000
72northingmin = 7580000
73northingmax = 7635000
74
75south = degminsec2decimal_degrees(-22,00,0)
76north = degminsec2decimal_degrees(-21,10,0)
77west = degminsec2decimal_degrees(114,30,0)
78east = degminsec2decimal_degrees(115,30,0)
79
80# region for visualisation
81eminviz = 260000
82emaxviz = 320000
83nminviz = 7590000
84nmaxviz = 7630000
85
86#Georeferencing
87from coordinate_transforms.redfearn import degminsec2decimal_degrees
88
89refzone = 50
90
91#Main Domain of Onslow: first run NB 21/2/06
92d0 = [305000, 7635000]
93d1 = [280000, 7635000]
94d2 = [250000, 7615000]
95d3 = [250000, 7590000]
96d4 = [310000, 7580000]
97d5 = [330000, 7610000]
98
99polyAll = [d0, d1, d2, d3, d4, d5]
100
101#Interior region - Onslow town
102
103i0 = [304000, 7608000]
104i1 = [302000, 7605000]
105i2 = [303000, 7602000]
106i3 = [305000, 7601000]
107i4 = [309000, 7603000]
108i5 = [307000, 7606500]
109
110poly_onslow = [i0, i1, i2, i3, i4, i5]
111
112#Thevenard Island
113j0 = [294000, 7629000]
114j1 = [285000, 7625000]
115j2 = [294000, 7621000]
116j3 = [299000, 7625000]
117
118poly_thevenard = [j0, j1, j2, j3]
119
120# Direction Is
121k0 = [309000, 7619000]
122k1 = [304000, 7619000]
123k2 = [304000, 7616500]
124k3 = [309000, 7616500]
125
126poly_direction = [k0, k1, k2, k3]
127
Note: See TracBrowser for help on using the repository browser.