source: anuga_work/production/wollongong_2006/project_slide.py @ 4347

Last change on this file since 4347 was 4346, checked in by sexton, 18 years ago

slide modelling updates and slide report updates

File size: 5.9 KB
Line 
1# -*- coding: cp1252 -*-
2"""Common filenames and locations for topographic data, meshes and outputs.
3"""
4
5from os import sep, environ, getenv, getcwd
6from os.path import expanduser
7import sys
8from time import localtime, strftime, gmtime
9from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon
10
11if sys.platform == 'win32':
12    home = getenv('INUNDATIONHOME')
13    user = getenv('USERPROFILE')
14
15else:   
16    home = getenv('INUNDATIONHOME', sep+'d'+sep+'xrd'+sep+'gem'+sep+'2'+sep+'ramp'+sep+'risk_assessment_methods_project'+sep+'inundation')     
17    user = getenv('LOGNAME')
18    print 'USER:', user
19
20# INUNDATIONHOME is the inundation directory, not the data directory.
21home += sep +'data'
22
23#Making assumptions about the location of scenario data
24state = 'new_south_wales'
25scenario_dir_name = 'wollongong_tsunami_scenario_2006'
26
27# onshore data provided by NSW LPI, Krishna merged with existing
28# PMD data to make 100m DEM
29on_offshore10_name = 'wollongong_10'
30nsw100 = 'dem_utm'
31
32# survey data
33offshore_name1 = 'surveyAreaA'
34
35# AHO data
36offshore_name4 = '1000003611export'
37offshore_name5 = '1000003613export'
38offshore_name6 = '1000003614export'
39offshore_name7 = '1000003627export'
40offshore_name8 = '1000003628export'
41offshore_name9 = 'AHDexport'
42
43#swollen/ all data output
44basename = 'source'
45codename = 'project_slide.py'
46
47#Derive subdirectories and filenames
48local_time = strftime('%Y%m%d_%H%M%S',gmtime()) 
49meshdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'meshes'+sep
50datadir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'topographies'+sep
51gaugedir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'gauges'+sep
52polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep
53boundarydir = home+sep+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'boundaries'+sep
54outputdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'outputs'+sep
55outputtimedir = outputdir + local_time + sep
56polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep
57
58gauge_filename = gaugedir + 'gong_gauges.csv'
59codedir = getcwd()+sep                           
60codedirname = codedir + 'project_slide.py'
61meshname = outputtimedir + 'mesh_' + basename
62
63# Necessary if using point datasets, rather than grid
64on_offshore10_dem_name = datadir + on_offshore10_name
65nsw_dem_name = datadir + nsw100
66offshore_dem_name1 = datadir + offshore_name1
67offshore_dem_name4 = datadir + offshore_name4
68offshore_dem_name5 = datadir + offshore_name5
69offshore_dem_name6 = datadir + offshore_name6
70offshore_dem_name7 = datadir + offshore_name7
71offshore_dem_name8 = datadir + offshore_name8
72offshore_dem_name9 = datadir + offshore_name9
73combined_dem_name   = datadir + 'gong_combined_elevation'
74
75###############################
76# Domain definitions
77###############################
78
79# bounding polygon for study area
80polyAll = read_polygon(polygondir+'extentA_up.csv')
81
82print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0
83
84###############################
85# Interior region definitions
86###############################
87
88# areaA digitized polygons
89poly_local = read_polygon(polygondir+'local2.csv')
90poly_gong = read_polygon(polygondir+'gong3.csv')
91poly_southgong = read_polygon(polygondir+'south_gong.csv')
92
93print 'Area of local polygon', polygon_area(poly_local)/1000000.0
94
95###################################################################
96# Clipping regions for export to asc and regions for clipping data
97###################################################################
98
99poly_10mclip = read_polygon(polygondir+'10mclip.csv')
100poly_surveyclip = read_polygon(polygondir+'surveyclip.csv')
101
102# clipping for nsw grid for conversion
103eastingmin_nsw = 272900
104eastingmax_nsw = 463550
105northingmin_nsw = 6112950
106northingmax_nsw = 6269750
107
108# exporting asc grid
109##eastingmin = 300000
110##eastingmax = 314000
111##northingmin = 6167680
112##northingmax = 6202130
113
114eastingmin = 300000
115eastingmax = 314000
116northingmin = 6167680
117northingmax = 6202130
118
119# exporting asc grid for Amy
120##eastingmin = 282000
121##eastingmax = 306500
122##northingmin = 6131750
123##northingmax = 6170850
124
125###################################################################
126# Slide characteristics
127###################################################################
128
129# historical slides
130slide_origin_bulli = [370110,6189489]
131slide_origin_shovel = [354753,6187397]
132#slide_origin_yacaaba = [463012,6334735] original work was actually Birubi
133slide_origin_yacaaba = [476465, 6362424]
134slide_origin_birubi = [462267,6335100]
135
136# potential slides: these correspond approximately to modelled depths
137slide_origin_bulli_b = [405617,6249852]
138slide_origin_bulli_c0 = [438583,6308510]
139slide_origin_bulli_c1 = [465283,6335210]
140slide_origin_bulli_c2 = [483783,6358810]
141slide_origin_shovel_b = [396262,6252144]
142slide_origin_shovel_c0 = [431683,6311110]
143slide_origin_shovel_c1 = [458694,6340352]
144slide_origin_shovel_c2 = [475589,6363030]
145slide_origin_yacaaba_a = [359796,6190943]
146slide_origin_yacaaba_b = [397330,6251857]
147slide_origin_yacaaba_c0 = [431283,6312110]
148slide_origin_yacaaba_c1 = [459983,6339110]
149slide_origin_birubi_a = [362811,6191183]
150slide_origin_birubi_b = [403573,6250268]
151slide_origin_birubi_c0 = [437183,6309410]
152slide_origin_birubi_c2 = [483392,6359044]
153
154#bulli_depth = 2087.0
155bulli_depth = 1470.0
156bulli_length = 16840.0
157bulli_thickness = 424.0
158bulli_width = 8860.0
159bulli_density = 1.46
160bulli_slope = 4.0
161bulli_alpha = 126.0 - 90.0
162
163#shovel_depth = 968.0
164shovel_depth = 877.0
165shovel_length = 13500.0
166shovel_thickness = 165.0
167shovel_width = 4350.0
168shovel_density = 1.49
169shovel_slope = 4.0
170shovel_alpha = 118.0 - 90.0
171
172#yacaaba_depth = 1119.0
173yacaaba_depth = 938.
174yacaaba_length = 4189.
175yacaaba_thickness = 53.
176yacaaba_width = 2898.
177yacaaba_density = 1.48
178yacaaba_slope = 2.3
179yacaaba_alpha = 133.0 - 90.0
180 
181birubi_depth = 1320.
182birubi_length = 9903.0
183birubi_width = 4150.
184birubi_density = 1.48
185birubi_slope = 3.7
186birubi_alpha = 133.0 - 90.0
187birubi_thickness = 140.
Note: See TracBrowser for help on using the repository browser.