source: anuga_work/production/newcastle_2006/project_slide.py @ 4314

Last change on this file since 4314 was 4314, checked in by sexton, 17 years ago

update slide modelling parameters

File size: 6.1 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 = 'newcastle_tsunami_scenario_2006'
26
27# onshore data provided by NSW LPI, Krishna merged with existing
28# PMD data to make 100m DEM
29nsw100 = 'dem_utm'
30
31# survey data
32offshore_name2 = 'surveyAreaB'
33offshore_name3 = 'surveyAreaC'
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 + 'newcastle_gauges.csv'
59codedir = getcwd()+sep                           
60codedirname = codedir + 'project_slide.py'
61meshname = outputtimedir + 'mesh_' + basename
62
63# Necessary if using point datasets, rather than grid
64nsw_dem_name = datadir + nsw100
65offshore_dem_name2 = datadir + offshore_name2
66offshore_dem_name3 = datadir + offshore_name3
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 + 'newcastle_combined_elevation'
74
75###############################
76# Domain definitions
77###############################
78
79# bounding polygon for study area
80polyAll = read_polygon(polygondir+'extentC3.csv')
81polyAll_c0 = read_polygon(polygondir+'extent_c0.csv')
82
83print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0
84
85###############################
86# Interior region definitions
87###############################
88
89# newcastle digitized polygons
90poly_local = read_polygon(polygondir+'local2.csv')
91poly_newcastle = read_polygon(polygondir+'newcastle.csv')
92
93print 'Area of local polygon', polygon_area(poly_local)/1000000.0
94print 'Area of CBD polygon', polygon_area(poly_newcastle)/1000000.0
95
96# region c0
97poly_local_c0 = read_polygon(polygondir+'local_c0.csv')
98poly_entrance_c0 = read_polygon(polygondir+'entrance.csv')
99
100#plot_polygons([polyAll,poly_local,poly_newcastle],'fig',verbose=True)
101###################################################################
102# Clipping regions for export to asc and regions for clipping data
103###################################################################
104
105# clipping for nsw grid for conversion
106eastingmin_nsw = 350390
107eastingmax_nsw = 546000
108northingmin_nsw = 6253970
109northingmax_nsw = 6424600
110
111# clipping for nsw grid for conversion
112eastingminc0_nsw = 322440
113eastingmaxc0_nsw = 436250
114northingminc0_nsw = 6280000
115northingmaxc0_nsw = 6410000
116
117poly_surveyclip = read_polygon(polygondir+'surveyclip.csv')
118
119# exporting asc grid
120eastingmin = 366890
121eastingmax = 404270
122northingmin = 6335450
123northingmax = 6375630
124
125# exporting asc grid for Michelle
126eastingmin = 386450
127eastingmax = 432900
128northingmin = 6357500
129northingmax = 6400700
130
131###################################################################
132# Slide characteristics
133###################################################################
134
135# historical slides
136slide_origin_bulli = [370110,6189489]
137slide_origin_shovel = [354753,6187397]
138#slide_origin_yacaaba = [463012,6334735] original work was actually Birubi
139slide_origin_yacaaba = [476465, 6362424]
140slide_origin_birubi = [462267,6335100]
141
142# potential slides: these correspond approximately to modelled depths
143slide_origin_bulli_b = [405617,6249852]
144slide_origin_bulli_c0 = [438583,6308510]
145slide_origin_bulli_c1 = [465283,6335210]
146slide_origin_bulli_c2 = [483783,6358810]
147slide_origin_shovel_b = [396262,6252144]
148slide_origin_shovel_c0 = [431683,6311110]
149slide_origin_shovel_c1 = [458694,6340352]
150slide_origin_shovel_c2 = [475589,6363030]
151slide_origin_yacaaba_a = [359796,6190943]
152slide_origin_yacaaba_b = [397330,6251857]
153slide_origin_yacaaba_c0 = [431283,6312110]
154slide_origin_yacaaba_c1 = [459983,6339110]
155slide_origin_birubi_a = [362811,6191183]
156slide_origin_birubi_b = [403573,6250268]
157slide_origin_birubi_c0 = [437183,6309410]
158slide_origin_birubi_c2 = [483392,6359044]
159
160#bulli_depth = 2087.0
161bulli_depth = 1470.0
162bulli_length = 16840.0
163bulli_thickness = 424.0
164bulli_width = 8860.0
165bulli_density = 1.46
166bulli_slope = 4.0
167bulli_alpha = 126.0 - 90.0
168
169#shovel_depth = 968.0
170shovel_depth = 877.0
171shovel_length = 13500.0
172shovel_thickness = 165.0
173shovel_width = 4350.0
174shovel_density = 1.49
175shovel_slope = 4.0
176shovel_alpha = 118.0 - 90.0
177
178#yacaaba_depth = 1119.0
179yacaaba_depth = 938
180yacaaba_length = 4189
181yacaaba_thickness = 53
182yacaaba_width = 2898
183yacaaba_density = 1.48
184yacaaba_slope = 2.3
185yacaaba_alpha = 133.0 - 90.0
186 
187birubi_depth = 1320.
188birubi_length = 9903.0
189birubi_width = 4150.
190birubi_density = 1.48
191birubi_slope = 3.7
192birubi_alpha = 133.0 - 90.0
193birubi_thickness = 140.0
Note: See TracBrowser for help on using the repository browser.