dominosee.eventorize.select_end_consecutive

dominosee.eventorize.select_end_consecutive(event_bool, period=1)[source]

Select the last period of each consecutive event along the time dimension.

Parameters:
  • event_bool (xarray.DataArray) – DataArray containing boolean event values

  • period (int, optional) – Number of time steps to select from the end of each event, by default 1

Return type:

DataArray

Returns:

xarray.DataArray – DataArray with the selected end period values