From cb3cddba88edeba0480fb0a32b59b76162e00a06 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Mon, 28 Oct 2019 13:05:42 +0000 Subject: add comment and remove duplicated filename assignments. --- makeBoundary | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'makeBoundary') diff --git a/makeBoundary b/makeBoundary index b16512e..6695404 100755 --- a/makeBoundary +++ b/makeBoundary @@ -158,6 +158,7 @@ numH = definition_dict["numH"] # number of height intervals # m, c = np.polyfit(ych, zch, 1) # print('gradient =', m, 'intercept =', c) +# read topography: with open(height_data, "r") as topo: xtp, ytp, ztp = np.loadtxt(topo, delimiter=' ', unpack=True) @@ -177,22 +178,18 @@ if args.location == 'top': xin = xtp[nrows-1:len(xtp):nrows] yin = ytp[nrows-1:len(xtp):nrows] zin = ztp[nrows-1:len(xtp):nrows] - outputFilename = "BCTop.txt" elif args.location == 'bottom': xin = xtp[0:len(xtp):nrows] yin = ytp[0:len(xtp):nrows] zin = ztp[0:len(xtp):nrows] - outputFilename = "BCBottom.txt" elif args.location == 'left': xin = xtp[:nrows] yin = ytp[:nrows] zin = ztp[:nrows] - outputFilename = "BCLeft.txt" elif args.location == 'right': xin = xtp[nrows*(ncols-1):] yin = ytp[nrows*(ncols-1):] zin = ztp[nrows*(ncols-1):] - outputFilename = "BCRight.txt" # print(xin) -- cgit