Im trying to run Focal statistics on a list of parameters, where the radius changes for each input parameter and then save the resultant DTM with the radius attached in the name. I can do this for one file, however trying to implement this within a for loop is I get the error NbrVircle object does not support item assignment. My code is below.
import arcpy
from arcpy import env
from arcpy.sa import *
# Set environment settings
env.workspace = "D:/Kieran"
Parameters=[50,100,150,200,250,300,350,400]
# Set local variables
inRaster = "D:/temp/DTM.asc"
# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")
for i in Parameters:
neighborhood[i] = NbrCircle(i, "CELL")
# Execute FocalStatistics
outFocalStatistics[i] = FocalStatistics(inRaster, neighborhood, "MEAN","")
# Save the output
outFocalStatistics.save("D:/temp/DTM"+[i]+".asc")