Fix swash regime not detected if there is no dune toe

develop
Chris Leaman 6 years ago
parent cbfd69c852
commit bbe86b231a

@ -74,6 +74,13 @@ def storm_regime(df_forecasted_impacts):
"storm_regime", "storm_regime",
] = "inundation" ] = "inundation"
# If there is no dune toe defined, R_high should be compared to dune crest to determine if swash or overwash.
df_forecasted_impacts.loc[
(df_forecasted_impacts.dune_toe_z.isnull())
& (df_forecasted_impacts.R_high <= df_forecasted_impacts.dune_crest_z),
"storm_regime",
] = "swash"
return df_forecasted_impacts return df_forecasted_impacts

Loading…
Cancel
Save