Hi all,
I am using below python code to convert rasters from one format to tiff, but this code converts one by one. Can anyone help me how to use it as batch tool?
I need help really urgently.
Thanks..
import arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()
try:
# Set local variables
InRaster = "C:\\\\L71010028_02820020717\L71010028_02820020717_HDF.L1G"
OutWorkspace = "C:\\\\Image Test"
# Process: RasterToOtherFormat_conversion (convert to TIFF format)
gp.RasterToOtherFormat_conversion(InRaster,OutWorkspace,"TIFF")
except:
# Print error message if an error occurs
print gp.GetMessages()