xoa.tide.spring_high_waters#
- xoa.tide.spring_high_waters(h, hw=None, quantile=0.75, half_window=6, time_dim=None)[source]#
High waters with the largest tidal range, i.e. spring tides
The range of a high water is its level minus the lowest level within
half_windowsamples on each side.- Parameters:
h (xarray.DataArray) – Sea level, typically the predicted tide.
hw (xarray.DataArray, None) – High water mask, see
high_waters(). It defaults to that ofh.quantile (float) – Keep the high waters whose range is above this quantile.
half_window (int)
time_dim (str, None) – Searched with
xoa.coords.get_tdim()when None.
- Returns:
xarray.DataArray – Boolean array with the dims of
h. High waters without a full window are dropped.