ERROR

010391 : Kernel file is not provided or does not exist

Last Published: April 25, 2020

Error Message

The error message "010391: Kernel file is not provided or does not exist" is generated in the Focal Statistics Geoprocessing tool when the Neighborhood type is selected as 'weight' or 'irregular'. When using these options in ArcGIS for Desktop 10.2.2, the 'Browse to folder' icon becomes disabled, preventing the user from selecting the kernel file.
[O-Image]

Cause

This is a known issue that occurs at version 10.2.2.

Solution or Workaround

For ArcGIS for Desktop 10.2.2

Run the Focal Statistics tool through a Python script, like the sample Python script below.

Note:
Change the folder location paths to match the file location paths on the machine.


Code:
import arcpy
from arcpy import env
from arcpy.sa import *

env.workspace = "D:\\Incident\\New Geodatabase.gdb"

# Local variables:
inRaster = "Clip_image"
inkarnelfile = "D:\\Incident\\testkernal.txt"
neighborhood = NbrIrregular(inkarnelfile)

# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")

# Execute FocalStatistics
outFocalStatistics = FocalStatistics(inRaster, neighborhood, "MINIMUM")

# Save the output
outFocalStatistics.save("D:\\Incident\\New Geodatabase.gdb\\focalstatout")

For ArcGIS for Desktop 10, 10.1, 10.2, 10.2.1, 10.3

Continue selecting the kernel file by clicking the 'Browse to folder' icon to add it into the Focal Statistics tool.

Article ID: 000012197

Software:
  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options