Solved! Go to Solution.
I need a elliptical search window for focal statistics (Max), where the major axis is oriented due to an angle from a table (in my case from aspect values so that the ellipse is oriented downslope).
I need a elliptical search window for focal statistics (Max), where the major axis is oriented due to an angle from a table (in my case from aspect values so that the ellipse is oriented downslope).
We have tackled a similar problem with oriented well buffers for water-quality data analysis.
Our solution was to generate a collection of kernel files (say, 36 of them, one for each 10 degrees of azimuth, ker0.txt to ker35.txt), calculate azimuth codes (say - 0 to 35). Then you could set up a model that iterates on your azimuth code field values to run zonal statistics, using the Calculate Value tool to generate the kernel file name from the azimuth code on each iteration.
So, you created 10 different rasters, right? How did you get your final raster?
Con("asp" == 1, "s1", Con("asp" == 2, "s2", Con("asp" == 3, "s3" ... ))))))))
Pick("asp", "s1", "s2", "s3", ..., "s35")
Then with Raster Calculator and the Con tool, use the aspect code (here in raster "asp", integers from 1 to 35) to pick which aspect results to use:Con("asp" == 1, "s1", Con("asp" == 2, "s2", Con("asp" == 3, "s3" ... ))))))))
Another (quite nifty) approach is to use the Pick tool, again assuming the asp codes are 1 to 35:Pick("asp", "s1", "s2", "s3", ..., "s35")