Select to view content in your preferred language

Extract average of the 4 surrounding pixels of a point

550
2
09-13-2022 11:04 AM
YEMY
by
New Contributor

Hello,

I have a points shapefile that I want to use to get the average of 4 surrounding pixels of each point (5 points). Is there a way I can do that without the need to create a buffer zone around the points.

 

Thanks

Tags (1)
0 Kudos
2 Replies
JohnWatt
Frequent Contributor

Hi YEMY. Sounds like you want to use the Point Statistics GP tool - under Spatial Analyst Tools/Neighbourhood in the system toolbox. Will probably need a SA license.

To get the 4 surrounding pixels, you could try using a Circle Neighbourhood with a map radius just big enough to grab the top/bottom/left/right pixels - assuming your points are centered in the cell - but haven't tested. Otherwise you could use the Focal Statistics tool with an irregular neighborhood (custom kernel file) and use the Sample GP tool to give the calculated cell value back to a point.

https://pro.arcgis.com/en/pro-app/2.9/tool-reference/spatial-analyst/point-statistics.htm

 

JohnWatt_0-1663110937114.png

 

0 Kudos
YEMY
by
New Contributor

Hello, unfortunately it didn't work

0 Kudos