Hi Timothy, I'm facing the same issue with a map that has no data values. Con(IsNull("raster"), FocalStatistics("raster", NbrRectangle(5,5, "CELL"), "MEAN"), "raster") is what I input, it worked but the map became coarser. How do I know which rectangle (e.g. "5,5") suits my data, in order to retain the original outlook in the first image? Here is the before and after.
Dear Mr Hales,
where could I find a guide for the syntax for different types of neighborood? I am not sure about the meaning of the (10,''CELL'') in the expression you use; I can guess that it means a circle with a 10 cell radius? What are the alternatives to ''CELL''?
Thank you so much,
Hi Arianna Numi,
The values in the syntax represent radius and units. You can get more explanation from ArcGIS Help | Focal Statistics
This has been answered on the following thread: Fill no data values areas in DEM Within the Raster Calculator use a similar expression as below: con(isnull(Raster_DEM), focalmean(Raster_DEM, rectangle,4,4), Raster_DEM) This will look for the NoData values in the raster and for those locations find the focal mean. If the value is not NoData then it will keep the value.
Q. Does this fill all holes in the raster?
What if I only want to fill one hole and leave the rest alone - it seems a different approach/workflow is needed. Appreciate any guidance you might have. Thanks.
Retrieving data ...