source: production/onslow_2006/project_old.py @ 2863

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

update onslow

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