aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-14 12:24:30 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-14 12:24:30 +0100
commite1a2c82bb7c4e2faa3e391b3dd6d9a051a0e8dd9 (patch)
tree0882f0729655c3ba107ce1570ad04d50538998d4
parent8975f3ca8f6263ca7ee429bc11bbfeb3caa352c5 (diff)
downloadfullSWOF-utils-e1a2c82bb7c4e2faa3e391b3dd6d9a051a0e8dd9.tar.gz
use a list object to store the minimum heights within each panel.
-rwxr-xr-xmakeBoundary.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index ad0478a..646af68 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -110,18 +110,15 @@ for p in range(num_panels):
# print(zregion)
# print(xin[12:20])
-# minimum height in channel:
-zmin = zregion[channel].min()
-# overtopping height (minimum of left bank and right bank heights):
-zmax = min(zregion[channel][0], zregion[channel][-1]) - ztol
-
-zmax_west = zmax
-zmax_east = zmax
+zmin = []
+for p in range(num_panels):
+ # identify minimum heights within each panel:
+ zmin.append(zregion[p].min())
-zmin_west = zregion_west.min()
-zmin_east = zregion_east.min()
+print(zmin[1])
-print(zmin_east)
+# overtopping height (minimum of left bank and right bank heights):
+zmax = min(zregion[channel][0], zregion[channel][-1]) - ztol
numH = 50 # number of height intervals