Hi,
I have combined two rasters and ended up with some slivers of nodata. I would like to fill those cells in with neighboring values. I have tried this expression in the raster calculator: Con(IsNull("raster"), FocalStatistics("raster", NbrRectangle(5,5, "CELL"), "MEAN"), "raster")
but that results in new values; i assume the mean of the 5,5 window values. Can I modify this expression to replace mean with something that does not result in new values? Just want the most common neighboring value to get assigned to the nodata areas.
Thanks!
Solved! Go to Solution.
you said it... focal statistics majority...
http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/focal-statistics.htm
you said it... focal statistics majority...
http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/focal-statistics.htm
Thanks for holding my hand on these questions Dan. I really need to take a class in map algebra.
Is it possible to store these handy expressions somewhere in arctoolbox or something?
b
Bookmarks in your browser are handy IF you organize the browser folders by topic... but nothing works better than a real notebook that you can stash random 'should keep this' things. At least you will twig to a '...I have seen this before...'
Another thing that has been recommended is to create a special filter in gmail to store these kinds of tips in. Thanks again Dan.
b