Last change
on this file since 4294 was
4228,
checked in by sexton, 18 years ago
|
(1) add building damage scripts for the study areas and update project.py (2) update report generation scripts (3) update Gantt chart (4) report updates to reflect URS input
|
File size:
1.2 KB
|
Line | |
---|
1 | """ Script for calculating maximum inundation at building locations |
---|
2 | |
---|
3 | Inputs: |
---|
4 | |
---|
5 | swwfile - name of sww file |
---|
6 | - assume that all conserved quantities have been stored |
---|
7 | |
---|
8 | buildings_filename - name of file containing building data, sourced |
---|
9 | from NBED |
---|
10 | |
---|
11 | Output: |
---|
12 | |
---|
13 | - building_filename (.csv) augmented to include maximum depth, momentum and |
---|
14 | velocity and stored in same location as swwfile |
---|
15 | Name = augmented_buildings.csv |
---|
16 | |
---|
17 | """ |
---|
18 | |
---|
19 | from os import sep |
---|
20 | |
---|
21 | from damage.inundation_damage import add_depth_and_momentum2csv |
---|
22 | import project |
---|
23 | |
---|
24 | # Inputs |
---|
25 | #timestampdir = '20060704_063005' # HAT |
---|
26 | #timestampdir = '20060704_063112' # LAT |
---|
27 | #timestampdir = '20060704_063234' # MSL |
---|
28 | timestampdir = '20060515_001733' # DTED MSL |
---|
29 | file_loc = project.outputdir + timestampdir + sep |
---|
30 | swwfile = file_loc + project.basename + '.sww' |
---|
31 | buildings_filename = project.buildings_filename |
---|
32 | buildings_filename_out = file_loc + project.buildings_filename_out |
---|
33 | |
---|
34 | add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) |
---|
35 | |
---|
36 | |
---|
37 | print '\n Augmented building file written to %s \n' \ |
---|
38 | %buildings_filename_out |
---|
Note: See
TracBrowser
for help on using the repository browser.