https://mingredbestcheapprice.blogspot.com/2023/10/block-mean-of-2d-numpy-array-in-both.html
Block Mean Of 2d Numpy Array (in Both Dimensions)