Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

determining maximum cell from a Numpy array

$
0
0
hello

i have a large numpy array and i would like to write a python script for assigning zero (0) to every maximum cell in every four adjacent cells. For example, see figure below:

Attachment 19775


Any help would be very much appreciated, thanks in advance!
Attached Thumbnails
Click image for larger version

Name:	Untitled.png‎
Views:	N/A
Size:	47.9 KB
ID:	19775  

Viewing all articles
Browse latest Browse all 2485

Trending Articles