I am analysing SCADA data using R.
The problem I need to solve is to analyse a SCADA feed and determine how often the measurements exceeded a certain limit for more than 15 minutes.
The only way I could solve this is by using a for loop, which will make the process very slow because real life application will have thousands of points.
Any suggestions?
Simple example:
set.seed(666)
upper_limit =1.5
sims <- 50
turb <- abs(rnorm(sims))
time <- seq.POSIXt(as.POSIXct(Sys.Date()-1), by=30, length.out=sims)
plot(time,turb, type="l")
abline(h=upper_limit, col="red", lwd=2)
See: http://rpubs.com/pprevos/scada
The answer for this example is: 8 exceedances and I also need to know the duration of each of these.