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

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

update project files for slide modelling

File size: 5.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')
81
82print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0
83
84###############################
85# Interior region definitions
86###############################
87
88# newcastle digitized polygons
89poly_local = read_polygon(polygondir+'local2.csv')
90poly_newcastle = read_polygon(polygondir+'newcastle.csv')
91
92print 'Area of local polygon', polygon_area(poly_local)/1000000.0
93print 'Area of CBD polygon', polygon_area(poly_newcastle)/1000000.0
94
95#plot_polygons([polyAll,poly_local,poly_newcastle],'fig',verbose=True)
96###################################################################
97# Clipping regions for export to asc and regions for clipping data
98###################################################################
99
100# clipping for nsw grid for conversion
101eastingmin_nsw = 350390
102eastingmax_nsw = 546000
103northingmin_nsw = 6253970
104northingmax_nsw = 6424600
105
106poly_surveyclip = read_polygon(polygondir+'surveyclip.csv')
107
108# exporting asc grid
109eastingmin = 366890
110eastingmax = 404270
111northingmin = 6335450
112northingmax = 6375630
113
114# exporting asc grid for Michelle
115eastingmin = 386450
116eastingmax = 432900
117northingmin = 6357500
118northingmax = 6400700
119
120###################################################################
121# Slide characteristics
122###################################################################
123
124# historical slides
125slide_origin_bulli = [370110,6189489]
126slide_origin_shovel = [354753,6187397]
127slide_origin_yacaaba = [463012,6334735]
128
129# potential slides: these correspond approximately to modelled depths
130slide_origin_bulli_b = [405617,6249852]
131slide_origin_bulli_c = [465283,6335210]
132slide_origin_shovel_b = [396262,6252144]
133slide_origin_shovel_c = [458694,6340352]
134slide_origin_yacaaba_a = [361753,6188786]
135slide_origin_yacaaba_b = [401897,6250643]
136
137#bulli_depth = 2087.0
138bulli_depth = 1470.0
139bulli_length = 16840.0
140bulli_thickness = 424.0
141bulli_width = 8860.0
142bulli_density = 1.46
143bulli_slope = 4.0
144bulli_alpha = 126.0 - 90.0
145
146#shovel_depth = 968.0
147shovel_depth = 877.0
148shovel_length = 13500.0
149shovel_thickness = 165.0
150shovel_width = 4350.0
151shovel_density = 1.49
152shovel_slope = 4.0
153shovel_alpha = 118.0 - 90.0
154
155#yacaaba_depth = 1119.0
156yacaaba_depth = 1222.5
157yacaaba_length = 7050.0
158yacaaba_thickness = 144.0
159yacaaba_width = 3080.0
160yacaaba_density = 1.48
161yacaaba_slope = 3.0
162yacaaba_alpha = 133.0 - 90.0
Note: See TracBrowser for help on using the repository browser.