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)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.