source: production/onslow_2006/project.py @ 2470

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

Update source of boundary conditions for Onslow, however still needs more work

File size: 2.4 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               
12#Making assumptions about the location of scenario data
13scenario_dir_name = 'onslow_tsunami_scenario_2006'
14
15
16# 250m data to be provided
17coarsename = 'onsl_bathydem250' # get from Neil/Ingo (DEM or topo data)
18"""
19# 30m data to be provided
20finename = 'onshore_30' # get from Neil/Ingo (DEM or topo data)
21"""
22
23# clipping region for fine elevation data
24west = 240000
25east = 340000
26south = 7570000
27north = 7645000
28
29#swollen/ all data output
30basename = 'source'
31
32if sys.platform == 'win32':
33    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
34else:   
35    home = expanduser('~')
36
37#Derive subdirectories and filenames
38meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
39datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
40outputdir = home+sep+scenario_dir_name+sep+'output'+sep
41polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep
42boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
43
44meshname = meshdir + basename
45
46coarsedemname = datadir + coarsename
47"""
48finedemname = datadir + finename
49combineddemname = datadir + 'onslow_combined_elevation'
50"""
51
52outputname = outputdir + basename  #Used by post processing
53
54#!gauge_filename = outputdir + 'onslow_gauges.xya'
55#!gauge_outname = outputdir + 'gauges_max_output.xya'
56
57#Georeferencing
58from coordinate_transforms.redfearn import degminsec2decimal_degrees
59
60refzone = 50
61
62#Main Domain of Onslow: first run NB 21/2/06
63d0 = [305000, 7635000]
64d1 = [280000, 7635000]
65d2 = [250000, 7615000]
66d3 = [250000, 7590000]
67d4 = [310000, 7580000]
68d5 = [330000, 7610000]
69
70polyAll = [d0, d1, d2, d3, d4, d5]
71
72#Interior region - Onslow town
73
74i0 = [304000, 7608000]
75i1 = [302000, 7605000]
76i2 = [303000, 7602000]
77i3 = [305000, 7601000]
78i4 = [309000, 7603000]
79i5 = [307000, 7606500]
80
81poly_onslow = [i0, i1, i2, i3, i4, i5]
82
83#Thevenard Island
84j0 = [294000, 7629000]
85j1 = [285000, 7625000]
86j2 = [294000, 7621000]
87j3 = [299000, 7625000]
88
89poly_thevenard = [j0, j1, j2, j3]
90
91# Direction Is
92k0 = [309000, 7619000]
93k1 = [304000, 7619000]
94k2 = [304000, 7616500]
95k3 = [309000, 7616500]
96
97poly_direction = [k0, k1, k2, k3]
98
99#!slump_origin = [385000.0, 6255000.0] #Absolute UTM
Note: See TracBrowser for help on using the repository browser.