Changeset 3309
- Timestamp:
- Jul 11, 2006, 3:57:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/damage/inundation_damage.py
r3307 r3309 10 10 from pyvolution.util import file_function 11 11 from geospatial_data.geospatial_data import ensure_absolute 12 12 from utilities.numerical_tools import INF 13 13 try: 14 14 import kinds … … 84 84 for time in callable_sww.get_time(): 85 85 quantities = callable_sww(time,point_i) 86 print "quantities", quantities 87 86 88 w = quantities[0] 87 89 z = quantities[1] … … 89 91 vh = quantities[3] 90 92 depth = w - z - ground_floor_height 91 momentum = sqrt(uh*uh + vh*vh)93 92 94 if depth > max_depth[point_i]: 93 95 max_depth[point_i] = depth 96 if w == INF or z == INF or uh == INF or vh == INF: 97 continue 98 momentum = sqrt(uh*uh + vh*vh) 94 99 if momentum > max_momentum[point_i]: 95 100 max_momentum[point_i] = momentum
Note: See TracChangeset
for help on using the changeset viewer.