From 10f5c0c864ef9b11060e72facf65f8c7c0eafb83 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Wed, 23 Oct 2019 11:39:18 +0100 Subject: merge panel loops. --- makeBoundary.py | 9 ++++----- 1 file 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): -- cgit