I am hoping someone has experience with creating a neighborhood to calculate the slope for each pixel in a raster. I can easily convert the raster to an array and then do a calculation and convert back to a raster. However, I have no experience in creating a 5x5 neighborhood to calculate the slope in numpy or if this is even possible.
Any help or resources would be appreciated.
Andrew