""" Script for calculating maximum inundation at building locations Inputs: swwfile - name of sww file - assume that all conserved quantities have been stored buildings_filename - name of file containing building data, sourced from NBED Output: - building_filename (.csv) augmented to include maximum depth, momentum and velocity and stored in same location as swwfile Name = augmented_buildings.csv """ from os import sep from damage.inundation_damage import add_depth_and_momentum2csv import project # Inputs #timestampdir = '20060704_063005' # HAT #timestampdir = '20060704_063112' # LAT #timestampdir = '20060704_063234' # MSL timestampdir = '20060515_001733' # DTED MSL file_loc = project.outputdir + timestampdir + sep swwfile = file_loc + project.basename + '.sww' buildings_filename = project.buildings_filename buildings_filename_out = file_loc + project.buildings_filename_out add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) inundation_damage(swwfile, buildings_filename, buildings_filename_out) print '\n Augmented building file written to %s \n' \ %buildings_filename_out