source: production/pt_hedland_2006/project.py @ 2891

Last change on this file since 2891 was 2855, checked in by sexton, 19 years ago

updates

File size: 3.3 KB
RevLine 
[2848]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
9from pmesh.create_mesh import convert_points_from_latlon_to_utm
10from coordinate_transforms.redfearn import degminsec2decimal_degrees
11from time import localtime, strftime
12from os import getcwd
13
14#Making assumptions about the location of scenario data
15scenario_dir_name = 'pt_hedland_tsunami_scenario_2006'
16
17# onshore data from 30m DTED level 2
18onshore_name = 'pt_hedland_onshore_30m_dted' # get from Neil/Ingo (DEM or topo data)
19# offshore data from GA digitised charts
20offshore_name1 = 'pt_hedland_offshore_points'
21# offshore data from AHO fairsheets
22offshore_name2 = 'pt_hedland_offshore_points_fairsheet'
23# coastline developed from 30m DTED
24coast_name = 'pt_hedland_coastline_points'
25
26boundary_basename = 'SU-AU_clip'
27
28#swollen/ all data output
29basename = 'source'
30
31codename = 'project.py'
32
33if sys.platform == 'win32':
34    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
35else:   
36    home = expanduser('~')
37
38#Derive subdirectories and filenames
39time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
40outputtimedir = home+sep+scenario_dir_name+sep+'output'+sep+time+sep
41meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
42datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
43gaugedir = home+sep+scenario_dir_name+sep+'gauges'+sep
44polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep
45boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
46#output dir without time
47outputdir = home+sep+scenario_dir_name+sep+'output'+sep
48tidedir = home+sep+scenario_dir_name+sep+'tide_data'+sep
49
50print'bound', boundarydir
51
52#gauge_filename = gaugedir + 'onslow_gauges.xya'
53#for MOST
54gauge_filename = gaugedir + 'pt_hedland_gauges.xya'
55
56tidal_filename = tidedir + 'pt_hedland_tide.txt'
57
58# boundary source data
59#MOST_dir = 'f:'+sep+'3'+sep+'ehn'+sep+'users'+sep+'davidb'+sep+'tsunami'+sep+'WA_project'+sep+'SU-AU_90'+sep+'most_2'+sep+'detailed'+sep
60
61codedir = getcwd()+sep
62                               
63codedirname = codedir + 'project.py'
64
65meshname = meshdir + basename
66
67onshore_dem_name = datadir + onshore_name
68
69offshore_dem_name1 = datadir + offshore_name1
70offshore_dem_name2 = datadir + offshore_name2
71
72combined_dem_name = datadir + 'pt_hedland_combined_elevation'
73
74outputname = outputtimedir + basename  #Used by post processing
75
76# clipping region to make DEM (pts file) from onshore data
77eastingmin = 594000
78eastingmax = 715000
79northingmin = 7720000
80northingmax = 7880000
81
82# for ferret2sww
83#south =
84#north =
85#west =
86#east =
87
88# region to export (used from export_results.py)
89
90#e_min_area = 300000
91#e_max_area = 310000
92#n_min_area = 7600000
93#n_max_area = 7610000
94
95refzone = 50 # confirm with Hamish
96
97# bounding polygon provided by Hamish
98d0 = [818732.55, 8062768.27]
99d1 = [708940.32, 7750510.33]
100d2 = [656561.15, 7732615.11]
101d3 = [604415.81, 7733013.56]
102d4 = [517682.34, 7899310.22]
103
104polyAll = [d0, d1, d2, d3, d4]
105
106#Interior region - Pt Hedland town
[2855]107i0 = [690000, 7750510.33] # these are just currently close to d1, d2 and d3
108i1 = [656561.15, 7750000]
109i2 = [620000, 7733013.56]
[2848]110
111poly_pt_hedland = [i0, i1, i2]
112
113#Are there other significant features?
114j0 = []
115j1 = []
116j2 = []
117j3 = []
118
119poly_ = [j0, j1, j2, j3]
120
Note: See TracBrowser for help on using the repository browser.