Select to view content in your preferred language

Extract values from surrounding 9 neighborhood from a point feature

145
2
3 weeks ago
MdOmerHossain
Emerging Contributor

Hi,

I am using SNAP climate raster data, and I need to get cell value for precipitation and temperature from the surrounding 9 neighbor cell of my three stations point feature. I used Extract multi point to values to get the overlaying cell in which the stations falls. But I also need to extract each of the 9 neighboring cell values surrounding the original cell. How can I do this ? I need to do this for more than 1200 rater. How can I automate this in MODELBUILDER  or in spyder using Arcpy? 

ras.png

I extracted from the original cell where the station falls.

MdOmerHossain_0-1762445055842.png

I also need to cell values from those marked cells separately. 

 

Please let know if anyone can help me in this regard. Thank you.  

 

0 Kudos
2 Replies
Ed_
by MVP Regular Contributor
MVP Regular Contributor

may be create a buffer around the station point (if the station point is not at the center of these 9 cells then you can also draw a polygon around the station point) that covers those 9 cells and mask (Extract by Mask) them out 
convert those extracted cells to points (centroids)
spatial join station point with the 9 centroids using with in a distance relationship > distance would be the same as the buffer distance >  select one to many for joining 

Question | Analyze | Visualize
0 Kudos
DanPatterson
MVP Esteemed Contributor

If you have the spatial analyst extension, why not look at the Neighborhood Statistics toolset 

An overview of the Neighborhood toolset—ArcGIS Pro | Documentation

Maybe one of the various options will mitigate the need to get the absolute values of the 9 core cells


... sort of retired...
0 Kudos