Neighborhood focal statistics.... without the statistics?

827
2
10-01-2010 02:35 PM
SethBinder
New Contributor
Instead of using the Focal Statistics tool to calculate a neighborhood statistic for each focal cell, I'd like to be able to simply generate a table of the values of each cell's neighbors. In other words, I want an M-by-N table, where M is the total number of raster cells and N is the number of neighbors for each cell. (Some table entries would be null for focal cells near/at the edge of the raster.)

Is there any way to accomplish this in ArcGIS?


Thanks,
Seth
0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus
check numpy array and masked array modues in Python, you will have to code it yourself, but it should be possible to return each neighbourhood given an input grid/matrix, there are no tools with ArcMap
0 Kudos
SethBinder
New Contributor
Dan,

Thanks for your reply. I was afraid that was the case. Rather than using Numpy, I think I will give it a shot in Matlab, which is where I am doing much of my work anyway.

Seth
0 Kudos