How can I replicate focalmean with focal statistics

المشرف العام

Administrator
طاقم الإدارة
Hi I am trying to get rid of some small gaps of no data in my rasters. I would previosly have used focalmean but it is no longer available. I've tried what I expected to work but I'm getting errors.

What I have is:

MYNEWRAST = Con(IsNull("rasterrast"),FocalStatistics("rasterrast",NbrRectangle(50,50),"MEAN","NODATA"),"rasterrast")and this is giving me a pretty unhelpful error message:

Runtime error Traceback (most recent call last): File "", line 1, in File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 5142, in FocalStatistics ignore_nodata) File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Utils.py", line 47, in swapper result = wrapper(*args, **kwargs) File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 5136, in Wrapper ignore_nodata) File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in return lambda *args: val(*gp_fixargs(args, True)) ExecuteError: ERROR 999999: Error executing function. General function failure [FocalSt_rast6] Failed to execute (FocalStatistics). Has anyone had something similar working, and did they do it differently?



أكثر...
 
أعلى