import arcpy, os from arcpy import env env.workspace = r"<your workspace>" for dem_file in arcpy.ListFiles('*.DEM'): dem, ext = os.path.splitext(dem_file) print dem_file print dem arcpy.DEMToRaster_conversion(env.workspace + dem_file, env.workspace + "\\output\\" + dem + ".tif", "FLOAT", 1)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.