From 48f2142708571ac1ccf7c0987eeb0e8a9f968eb7 Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Mon, 4 Mar 2019 15:44:38 +1100 Subject: [PATCH] Change default slope calculation to least squares Rather than end points --- src/analysis/forecast_twl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/analysis/forecast_twl.py b/src/analysis/forecast_twl.py index 6515336..23ec730 100644 --- a/src/analysis/forecast_twl.py +++ b/src/analysis/forecast_twl.py @@ -173,7 +173,7 @@ def mean_slope_for_site_id( profile_z=profile_z, top_elevation=row[top_elevation_col], btm_elevation=row[btm_elevation_col], - method="end_points", + method="least_squares", top_x=row[top_x_col], ), axis=1, @@ -249,7 +249,7 @@ def foreshore_slope_from_profile(profile_x, profile_z, tide, runup_function, **k beta_new = slope_from_profile( profile_x=profile_x, profile_z=profile_z, - method="end_points", + method="least_squares", top_elevation=tide + setup + S_total / 2, btm_elevation=tide + setup - S_total / 2, )