From e1a2c82bb7c4e2faa3e391b3dd6d9a051a0e8dd9 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Mon, 14 Oct 2019 12:24:30 +0100 Subject: use a list object to store the minimum heights within each panel. --- makeBoundary.py | 17 +++++++---------- 1 file 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 -- cgit