Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. >>> import arcpy
  2. import os
  3. from arcpy import env
  4. env.workspace = r"D:Julia_Tprojekterste_schrittedritter_tag_pythontestdaten"
  5.  
  6. #folder to list
  7. ascFileList = arcpy.ListFiles("*.asc")
  8.  
  9. for ascFile in ascFileList:
  10. # geoprocessing steps
  11. ascFileName = os.path.splitext(ascFile)[0]
  12. # define the output file
  13. rastFile = ascFileName + "_output.img"
  14. # run the tool
  15. arcpy.ASCIIToRaster_conversion(ascFile,rastFile, "INTEGER")
  16. Runtime error Traceback (most recent call last): File "<string>", line 15, in <module> File "c:programmearcgisdesktop10.2arcpyarcpyconversion.py", line 2193, in ASCIIToRaster raise e ExecuteError: ERROR 000865: Eingabe-ASCII-Raster-Datei: 2001002_cloud_free.asc ist nicht vorhanden.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement