I have multiple rasters with range 0 - 255. I want to extract range from 0 to 100 using Arc GIS python script and after extraction I want to multiply all raster by 0.01 and save it with same name as it input using loop function. I have made one script till raster extraction, but I am getting an error while running the script. Below I have shown my script.
import arcpy, os arcpy.CheckOutExtension('Spatial') arcpy.env.workspace = r"D:\MODIS-NDVI\FPAR-2005\MASKED-FPAR-05" outFolder = r"D:\MODIS-NDVI\FPAR-2005\MASKED-FPAR-05A" arcpy.CheckOutExtension("Spatial") list = arcpy.ListRasters for inRaster in rasters: outRaster = outFolder + "\\" + inRaster arcpy.sa.con(inRaster >3000,inRaster)