1 | # -*- coding: cp1252 -*- |
---|
2 | """Common filenames and locations for topographic data, meshes and outputs. |
---|
3 | """ |
---|
4 | |
---|
5 | from os import sep, environ, getenv, getcwd |
---|
6 | from os.path import expanduser |
---|
7 | import sys |
---|
8 | from time import localtime, strftime, gmtime |
---|
9 | from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon |
---|
10 | |
---|
11 | if sys.platform == 'win32': |
---|
12 | home = getenv('INUNDATIONHOME') |
---|
13 | user = getenv('USERPROFILE') |
---|
14 | |
---|
15 | else: |
---|
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 | ################################################################### |
---|
21 | # Slide characteristics |
---|
22 | ################################################################### |
---|
23 | |
---|
24 | # historical slides |
---|
25 | slide_origin_bulli = [370110,6189489] |
---|
26 | slide_origin_shovel = [354753,6187397] |
---|
27 | #slide_origin_yacaaba = [463012,6334735] original work was actually Birubi |
---|
28 | slide_origin_yacaaba = [476465, 6362424] |
---|
29 | slide_origin_birubi = [462267,6335100] |
---|
30 | |
---|
31 | # potential slides: these correspond approximately to modelled depths |
---|
32 | slide_origin_bulli_b = [405617,6249852] |
---|
33 | slide_origin_bulli_c0 = [438583,6308510] |
---|
34 | slide_origin_bulli_c1 = [465283,6335210] |
---|
35 | slide_origin_bulli_c2 = [483783,6358810] |
---|
36 | slide_origin_shovel_b = [396262,6252144] |
---|
37 | slide_origin_shovel_c0 = [431683,6311110] |
---|
38 | slide_origin_shovel_c1 = [458694,6340352] |
---|
39 | slide_origin_shovel_c2 = [475589,6363030] |
---|
40 | slide_origin_yacaaba_a = [359796,6190943] |
---|
41 | slide_origin_yacaaba_b = [397330,6251857] |
---|
42 | slide_origin_yacaaba_c0 = [431283,6312110] |
---|
43 | slide_origin_yacaaba_c1 = [459983,6339110] |
---|
44 | slide_origin_birubi_a = [362811,6191183] |
---|
45 | slide_origin_birubi_b = [403573,6250268] |
---|
46 | slide_origin_birubi_c0 = [437183,6309410] |
---|
47 | slide_origin_birubi_c2 = [483392,6359044] |
---|
48 | |
---|
49 | #bulli_depth = 2087.0 |
---|
50 | bulli_depth = 1470.0 |
---|
51 | bulli_length = 16840.0 |
---|
52 | bulli_thickness = 424.0 |
---|
53 | bulli_width = 8860.0 |
---|
54 | bulli_density = 1.46 |
---|
55 | bulli_slope = 4.0 |
---|
56 | bulli_alpha = 126.0 - 90.0 |
---|
57 | |
---|
58 | #shovel_depth = 968.0 |
---|
59 | shovel_depth = 877.0 |
---|
60 | shovel_length = 13500.0 |
---|
61 | shovel_thickness = 165.0 |
---|
62 | shovel_width = 4350.0 |
---|
63 | shovel_density = 1.49 |
---|
64 | shovel_slope = 4.0 |
---|
65 | shovel_alpha = 118.0 - 90.0 |
---|
66 | |
---|
67 | #yacaaba_depth = 1119.0 |
---|
68 | yacaaba_depth = 938. |
---|
69 | yacaaba_length = 4189. |
---|
70 | yacaaba_thickness = 53. |
---|
71 | yacaaba_width = 2898. |
---|
72 | yacaaba_density = 1.48 |
---|
73 | yacaaba_slope = 2.3 |
---|
74 | yacaaba_alpha = 133.0 - 90.0 |
---|
75 | |
---|
76 | birubi_depth = 1320. |
---|
77 | birubi_length = 9903.0 |
---|
78 | birubi_width = 4150. |
---|
79 | birubi_density = 1.48 |
---|
80 | birubi_slope = 3.7 |
---|
81 | birubi_alpha = 133.0 - 90.0 |
---|
82 | birubi_thickness = 140. |
---|