Sandbars¶
Sandbars are shore-parallel ridges of sand in the surf zone. Large waves
break over them, so a beach with a well-developed bar usually loses less
sand in a storm. pck.sandbars finds the bars on each survey and describes
them. Work on shoreline-relative profiles
so that bar positions are distances from the shoreline.
Detecting bars¶
find_sandbars(x, elevation, ...) works on one profile:
- The profile is smoothed (Gaussian,
smooth_sigmagrid points) and then cut tox_range(default: from the shoreline seaward). - Crests are local maxima and troughs local minima. Each crest is paired with the nearest trough on each side. If the profile keeps falling seaward of the last crest, its last point serves as the seaward trough. A crest with no landward trough belongs to the beach face and is skipped.
- A bar is kept if its crest is more than
min_distancefrom the shoreline and its height exceedsmin_height[0]in the inner zone (crest withinzone_split) ormin_height[1]in the outer zone.
The bar height is
with crest \((x_c, z_c)\), landward trough \((x_l, z_l)\) and seaward trough \((x_s, z_s)\).
The defaults are the values used for Hasaki: bars more than 50 m from the
shoreline, an inner zone up to 170 m, minimum heights of 0.24 m (inner) and
0.5 m (outer), and depth below MHWS 1.25 m. For another beach, run with
keep_all=True first to see every crest, then choose thresholds from the
height distribution.
| Column | Meaning |
|---|---|
crest_x, crest_z |
Crest position [m] and elevation [m] |
height |
Crest above the trough-to-trough line [m] |
depth |
reference_level - crest_z, water depth over the crest [m] |
trough_land_x, trough_sea_x |
Positions of the two troughs [m] |
slope_land, slope_sea |
Crest-to-trough gradients on each side (positive) |
zone |
"inner" or "outer" |
Bar configuration of each survey¶
relative = pck.shoreline_relative_profiles(profiles, shoreline)
bars = pck.sandbar_table(relative) # one row per bar, with a "time" column
state = pck.bar_state(bars, times=profiles.index) # one row per survey
bar_state gives the number of inner and outer bars, the properties of the
highest bar in each zone (inner_crest_x, inner_height, inner_depth,
inner_slope_land, inner_slope_sea, and the same for outer_), and the
profile type:
profile_type |
Bar configuration |
|---|---|
| 1 | Unbarred |
| 2 | Inner bar only |
| 3 | Outer bar only |
| 4 | Inner and outer bars |
Pass times=profiles.index so that unbarred surveys are included.
pck.plot.plot_sandbars draws one profile with its crests, troughs and
trough lines, which is the quickest way to check the detection.