source: anuga_work/production/onslow_2006/run_building_inundation.py @ 4504

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

minor change to inundation_damage + updates to damage scripts for all scenarios

File size: 1.3 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 anuga.damage_modelling.inundation_damage import add_depth_and_momentum2csv, inundation_damage
22import project_urs
23
24# Inputs
25#timestampdir = '20070507_215717_run_final_1.5_nbartzis' # HAT
26timestampdir = '20070518_021050_run_final_0.0_nbartzis' # MSL
27file_loc = project_urs.output_dir + timestampdir + sep
28swwfile = file_loc + project_urs.scenario_name #+ '.sww'
29buildings_filename = project_urs.buildings_filename
30buildings_filename_out = file_loc + project_urs.buildings_filename_out
31
32#add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out)
33inundation_damage(swwfile, buildings_filename, buildings_filename_out)
34
35print '\n Augmented building file written to %s \n' \
36      %buildings_filename_out
Note: See TracBrowser for help on using the repository browser.