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

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

slide updates

File size: 3.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_offshore_name = '' 
30
31# AHO
32offshore_name1 = 'XY100011610'
33
34#swollen/ all data output
35basename = 'source'
36codename = 'project_slide.py'
37
38#Derive subdirectories and filenames
39local_time = strftime('%Y%m%d_%H%M%S',gmtime()) 
40meshdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'meshes'+sep
41datadir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'topographies'+sep
42gaugedir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'gauges'+sep
43polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep
44boundarydir = home+sep+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'boundaries'+sep
45outputdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'outputs'+sep
46outputtimedir = outputdir + local_time + sep
47polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep
48
49gauge_filename = gaugedir + 'gong_gauges.csv'
50codedir = getcwd()+sep                           
51codedirname = codedir + 'project_slide.py'
52meshname = outputtimedir + 'mesh_' + basename
53
54# Necessary if using point datasets, rather than grid
55on_offshore_dem_name = datadir + on_offshore_name
56offshore_dem_name1 = datadir + offshore_name1
57combined_dem_name   = datadir + 'gong_combined_elevation'
58
59###############################
60# Domain definitions
61###############################
62
63# bounding polygon for study area
64polyAll = read_polygon(polygondir+'extentA.csv')
65
66print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0
67
68###############################
69# Interior region definitions
70###############################
71
72# broome digitized polygons
73poly_gong1 = read_polygon(polygondir+'.csv')
74poly_gong2 = read_polygon(polygondir+'.csv')
75poly_gong3 = read_polygon(polygondir+'.csv')
76
77print 'Area of local polygon', polygon_area(poly_gong1)/1000000.0
78print 'Area of close polygon', polygon_area(poly_gong2)/1000000.0
79print 'Area of coastal polygon', polygon_area(poly_gong3)/1000000.0
80
81###################################################################
82# Clipping regions for export to asc and regions for clipping data
83###################################################################
84
85# exporting asc grid
86eastingmin = 
87eastingmax = 
88northingmin = 
89northingmax = 
90
91###################################################################
92# Slide characteristics
93###################################################################
94
95slide_origin_a = [352928.37,6188303.94]
96slide_origin_b = [393301.80,6253255.08]
97slide_origin_c = [446025.35,6330307.46]
98
99bulli_depth = 2087.0
100bulli_length = 16840.0
101bulli_thickness = 424.0
102bulli_width = 8860.0
103bulli_density = 1.46
104bulli_slope = 4.0
105bulli_alpha = 126.0 + 90.0
106
107shovel_depth = 968.0
108shovel_length = 13500.0
109shovel_thickness = 165.0
110shovel_width = 4350.0
111shovel_density = 1.49
112shove_slope = 4.0
113shovel_alpha = 118.0 + 90.0
114
115yacaaba_depth = 1119.0
116yacaaba_length = 7050.0
117yacaaba_thickness = 144.0
118yacaaba_width = 3080.0
119yacaaba_density = 1.48
120yacaaba_slope = 3.0
121yacaaba_alpha = 133.0 + 90.0
122
Note: See TracBrowser for help on using the repository browser.