aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakeBoundary.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index 2685bd4..d79c280 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -192,9 +192,13 @@ elif location == 'top' or location == 'bottom':
xregion = []
zregion = []
+zmin = []
for p in range(num_panels):
+ # identify regions:
xregion.append(xin[marker_ind[p]:marker_ind[p+1]])
zregion.append(zin[marker_ind[p]:marker_ind[p+1]])
+ # identify minimum heights within each panel:
+ zmin.append(zregion[p].min())
# xregion_west = xin[100:281]
# zregion_west = zin[100:281]
@@ -205,11 +209,6 @@ for p in range(num_panels):
# print(zregion)
# print(xin[12:20])
-zmin = []
-for p in range(num_panels):
- # identify minimum heights within each panel:
- zmin.append(zregion[p].min())
-
print(zmin[1])
# channel overtopping height (minimum of left bank and right bank heights):