Skip to content

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.

reference level (MHWS) height depth crest landward trough seaward trough shoreline (x' = 0) sea
Bar height is measured from the crest down to the straight line joining the two troughs (dashed), so a bar on a sloping seabed is neither over- nor under-estimated. Depth is measured from the reference level down to the crest.

Detecting bars

find_sandbars(x, elevation, ...) works on one profile:

  1. The profile is smoothed (Gaussian, smooth_sigma grid points) and then cut to x_range (default: from the shoreline seaward).
  2. 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.
  3. A bar is kept if its crest is more than min_distance from the shoreline and its height exceeds min_height[0] in the inner zone (crest within zone_split) or min_height[1] in the outer zone.

The bar height is

\[ h = z_c - \left[ z_{s} + (z_{l} - z_{s}) \frac{x_c - x_{s}}{x_{l} - x_{s}} \right] \]

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.