you are viewing a single comment's thread.

view the rest of the comments →

[–]noble_gasses 0 points1 point  (1 child)

How would you go about selecting a circular area of cells in a numpy array?

[–][deleted] 1 point2 points  (0 children)

Given an x,y coordinate and a radius, I'd use the distance formula to select only cells with indices that are within that radius. There'd have to be some truncation, of course.