I have a time series of 741 values and I\'m trying to extract in each non-overlapping block the maximum value in it. In my case the first block contains the first 10 values,