John Whitman:
When there are no NoData cells, the workaround that I described in that post allows the current version of the focal statistics tool to correctly compute a weighted mean in the central portion of the array, but my workaround does not handle NoData cells properly.
I'm wondering if you could create a grid of ones and sum that up using your kernel with a mask environment set to your value raster to calculate the needed denominator for the calculation.
By the way, here's an issue I found with kernel files using arcpy; readers of this thread may be interested:
Working with kernel files in arcpy: NbrIrregular bug
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.