def _make_windows(width, height, blocksize):
    """Manually makes windows of size equivalent to
    pan band image
    """
    for x in range(0, width, blocksize):
        for y in range(0, height, blocksize):
            yield (y, min(y + blocksize, height)), (x, min(x + blocksize,
                width))
