I have a code that calculates Start, Peak, and end points for a specified peak over threshold flood. i.e., the number of peakes indicates the number of flood events that exceeds a threshold in that dataseries. now i want to extract the data for each event and use it as separate variables. can anyone helpe with this please?? i have included an example for demonstration of what i neet.
ev1(data)=data between st(1):en(1)
ev2(data)=data between st(2):en(2)
ev(n)(data)=data between st(n):en(n)