aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakeBoundary3
l---------topography.txt1
2 files changed, 2 insertions, 2 deletions
diff --git a/makeBoundary b/makeBoundary
index 6695404..cb27fd7 100755
--- a/makeBoundary
+++ b/makeBoundary
@@ -142,7 +142,6 @@ n_co = definition_dict["n_co"] # Manning's 'n' coefficients
# TODO: use weighted mean 'n' values. See
# http://help.floodmodeller.com/isis/ISIS/River_Section.htm (Eq. 4)
# Note: weighted mean calculation requires roughness map.
-height_data = definition_dict["height_data"] # topography
markers = definition_dict["markers"] # distances from corner point
panel = definition_dict["panel"] # panel fill order
ztol = definition_dict["ztol"] # tolerance in overtopping height
@@ -159,7 +158,7 @@ numH = definition_dict["numH"] # number of height intervals
# print('gradient =', m, 'intercept =', c)
# read topography:
-with open(height_data, "r") as topo:
+with open("./topography.txt", "r") as topo:
xtp, ytp, ztp = np.loadtxt(topo, delimiter=' ', unpack=True)
diff --git a/topography.txt b/topography.txt
new file mode 120000
index 0000000..69aece3
--- /dev/null
+++ b/topography.txt
@@ -0,0 +1 @@
+../FullSWOF_2D-1.08.00/Examples/Simple/Inputs/topography.txt \ No newline at end of file