dominosee.es.get_event_time_differences

dominosee.es.get_event_time_differences(da_positions, event_counts=None)[source]

Calculate time differences between consecutive events for each location.

Parameters:
  • da_positions (xr.DataArray) – Event positions (time indices) for each location, as returned by get_event_positions

  • event_counts (xr.DataArray, optional) – Number of events per location, by default None (will be calculated from da_positions)

Return type:

DataArray

Returns:

xr.DataArray – Time differences between consecutive events for each location. The first event at each location will have NaN as its time difference.