xoa.tide.skew_surge

Contents

xoa.tide.skew_surge#

xoa.tide.skew_surge(obs, pred, hw=None, half_window=3, time_dim=None)[source]#

Skew surge at each predicted high water, at every point

It is the difference between the highest observed level around a predicted high water and the predicted high water level, whatever the timing offset.

Parameters:
  • obs (xarray.DataArray) – Observed and predicted sea level on the same regular time axis. obs may contain NaNs.

  • pred (xarray.DataArray) – Observed and predicted sea level on the same regular time axis. obs may contain NaNs.

  • hw (xarray.DataArray, None) – High water mask, see high_waters(). It defaults to that of pred.

  • half_window (int) – Half width in samples of the window searched for the observed maximum.

  • time_dim (str, None) – Searched with xoa.coords.get_tdim() when None.

Returns:

xarray.DataArray – Skew surge at the predicted high waters whose window is complete and holds data, NaN elsewhere.