I'm working on a simple script that will extract the lowest and highest values present from a group on input rasters. The values seem to be extracted to the lists properly but when I try to run the min and max function on the list I get an error: Runtime error <type 'exceptions.TypeError'>: 'list' object is not callable import arcpy
from arcpy import env
inputs = arcpy.GetParameterAsText(0)
worklist = inputs.split(";")
rastmin = list()
rastmax = list()
for file in worklist:
min = arcpy.GetRasterProperties_management(file, "MINIMUM")
max = arcpy.GetRasterProperties_management(file, "MAXIMUM")
rastmin.append(float(min.getOutput(0)))
rastmax.append(float(max.getOutput(0)))
else:
x = min(rastmin)
y = max(rastmax)
arcpy.AddMessage(x)
arcpy.AddMessage(y) Thanks in advance.
... View more