"magic windows" are ones that minimise the ```pipe_shift```: ``` nrows = 520 # number of rows in storage area pnwin = int(((nrows / ny) + 1)/2) pshift = nrows - (2*pnwin-1)*ny ```