Solved! Go to Solution.
def Reclass(value) rasterSTD = arcpy.GetRasterProperties_management(my_raster, "STD") std = rasterSTD.getOutput(0) rasterMEAN = arcpy.GetRasterProperties_management(my_raster, "MEAN") mean = rasterMEAN.getOutput(0) diff = abs(value - mean) if (diff < std): return 1 elif ((diff > std) & (diff < 2*std)): return 2 elif (diff > 2*std): return 3
def Reclass(value) rasterSTD = arcpy.GetRasterProperties_management(my_raster, "STD") std = rasterSTD.getOutput(0) rasterMEAN = arcpy.GetRasterProperties_management(my_raster, "MEAN") mean = rasterMEAN.getOutput(0) diff = abs(value - mean) if (diff < std): return 1 elif ((diff > std) & (diff < 2*std)): return 2 elif (diff > 2*std): return 3