source: anuga_work/production/pt_hedland_2006/run_damage.py @ 4282

Last change on this file since 4282 was 3369, checked in by duncan, 18 years ago

scenario changes

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
19from os import sep
20
21from damage.inundation_damage import inundation_damage
22import project
23
24# Inputs
25timestampdir = '20060707_003301' # HAT
26#timestampdir = '20060704_063112' # LAT
27#timestampdir = '20060704_063234' # MSL
28file_loc = project.outputdir + timestampdir + sep
29swwfile = file_loc + project.basename + '.sww'
30buildings_filename = project.buildings_filename
31buildings_filename_out = file_loc + project.buildings_filename_damage_out
32
33inundation_damage(swwfile, buildings_filename, timestampdir+"_damage.csv")
34
35
36print '\n Augmented building file written to %s \n' \
37      %buildings_filename_out
Note: See TracBrowser for help on using the repository browser.