Changeset 3176
- Timestamp:
- Jun 19, 2006, 10:20:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/util.py
r3150 r3176 699 699 verbose = True, 700 700 use_cache = True) 701 701 702 702 index = swwfile.rfind(sep) 703 703 file_loc.append(swwfile[:index+1]) … … 748 748 if line11[i].strip('\n').strip(' ') == 'Name': name_index = i 749 749 if line11[i].strip('\n').strip(' ') == 'Elevation': elev_index = i 750 750 751 751 for line in lines[1:]: 752 752 fields = line.split(',') … … 864 864 z = f(t, point_id = k)[1] 865 865 uh = f(t, point_id = k)[2] 866 vh = f(t, point_id = k)[3] 866 vh = f(t, point_id = k)[3] 867 867 depth = w-z 868 868 m = sqrt(uh*uh + vh*vh) 869 if m< 0.001:869 if depth < 0.001: 870 870 vel = 0.0 871 871 else: … … 886 886 if w < min_stage: min_stage = w 887 887 if m > max_momentum: max_momentum = m 888 if vel > max_speed: 889 last_i = i 890 last_k = k 891 max_speed = vel 888 if vel > max_speed: max_speed = vel 892 889 893 890 max_stages.append(max_stage)
Note: See TracChangeset
for help on using the changeset viewer.