diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-14 12:07:52 +0100 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-14 12:07:52 +0100 |
commit | fe0db16806da76a18b4f9a567f3e044c6a166b91 (patch) | |
tree | bea504c3516b0dab2015975f02684b697f6012b1 | |
parent | b4ea3eb3004d858b63b1ec84426499aebe0de8cd (diff) | |
download | fullSWOF-utils-fe0db16806da76a18b4f9a567f3e044c6a166b91.tar.gz |
calculate maximum height in channel.
-rwxr-xr-x | makeBoundary.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/makeBoundary.py b/makeBoundary.py index 358bd29..d8c4c98 100755 --- a/makeBoundary.py +++ b/makeBoundary.py @@ -110,8 +110,11 @@ for p in range(num_panels): # print(zregion) # print(xin[12:20]) -zmin = zregion[channel].min() # minimum height -zmax = zregion[channel].max()-ztol # overtopping height +# minimum height in channel: +zmin = zregion[channel].min() +# overtopping height (minimum of left bank and right bank height): +zmax = min(zregion[channel][0], zregion[channel][-1]) - ztol + zmax_west = zmax zmax_east = zmax |