xrspatial.morphology._circle_kernel#

xrspatial.morphology._circle_kernel(radius)[source]#

Return a boolean 2D array for a circular structuring element.

The kernel has shape (2*radius+1, 2*radius+1) with True for cells whose centre is within radius cells of the centre.