Hi everyone. I hope you can help me. I have 5-min rain data:
Station ID yyyy mm dd hh mm rain
APWXI 2014 09 12 14 25 0
APWXI 2014 09 12 14 30 0
APWXI 2014 09 12 14 35 0
APWXI 2014 09 12 14 40 0.2
APWXI 2014 09 12 14 45 0.2
I would like to accumulate every rain value restarting the sum every time the station had at least 6 hours without rain, in order to produce a matrix with the start and end dates of each rain event, as well as the total amount of rain accumulated over the period:
start_rain end_rain h_ accum_rain
2014/09/12 14:40 2014/09/12 18:20 12.2
How can I do this on MatLab?
Thank you