I Have 172 Raster, and need to change the cellsize. So I use Export Data from TOC
and change the cellsize manually (example I want to change it to "3")
I tried using this python script to create input and output folder (because batch output in resample had to be filled one by one and I just want to let all value as default including file name except for cellsize)
import sys, os, arcpy InRaster = sys.argv OutRaster = sys.argv InFolder = os.path.dirname(InRaster) arcpy.env.workspace = InFolder for Ras in arcpy.ListRasters(): arcpy.AddMessage("Processing " + Ras) #arcpy.RasterToOtherFormat_conversion(InFolder + "\\" + Ras , OutRaster ,"TIFF") arcpy.CopyRaster_management(InFolder + "\\" + Ras , OutRaster+ "\\" + Ras ,"DEFAULTS","","","","","") arcpy.AddMessage("Done")
Setting Properties :
When I try to add Input folder and Output Folder it has different submit
Result in error :
Is there any way to do it automatically or fixed for my python code to process multiple raster at once?