Extrapolate towards land when points are missing

etta-drone
Dan Howe 6 years ago
parent 8c4dfa3c66
commit 65c22a142b

@ -150,7 +150,7 @@ def findZerochainage(chainage0, elevation0, max_beach_slope=5, min_beach_slope=5
def insert_LL(chainage, elevation, LL):
# insert an additional element to make LL an actual point
elev_intr=scipy.interpolate.interp1d(chainage, elevation)
elev_intr=scipy.interpolate.interp1d(chainage, elevation, fill_value='extrapolate')
elev_LL=float(elev_intr(LL))
data=[[chainage[i], elevation[i]] for i in range(0, len(chainage))]

Loading…
Cancel
Save