I'm sorry, Saurabh, Sandeep, and other Ferret users. I've begun to think that my idea was wrong. I thought @SBX was the solution, but it doesn't keep the same mean value over the window, in formulae like
u' = u - mean(u).
So, indeed the correct solution would be complicated. I'd like to know if there is an elegant solution.
Ryo