But some recent analyses have required some tendonitis inducing* mouse clicking in ArcGIS. Only a simple task of converting rasters to float files. But none the less, thumb, forefinger and mind numbing after a while.
Here is a basic loop which, will convert all rasters in a folder (inFolder) to floats in a output folder (outFolder). You could potentially use this for many different functions in arcpy.
# Import system modules import arcpy from arcpy import env # Set local variables inFolder = "T:\\Your_Directory\\Environmental Data\\Bioclim_ascii\\Rasters" outFolder = "T:\\Your_Directory\\Environmental Data\\Bioclim_ascii\\Float" arcpy.env.workspace = InFolder for Ras in arcpy.ListRasters(): arcpy.RasterToFloat_conversion(inFolder + "\\" + Ras, outFolder + "\\" + Ras + ".flt")
* no tendonitis was developed during this demo.