incidents function

Identify incident events separated by a minimum time window