Guest User

Untitled

a guest
Jan 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. workspace = ("...")
  2. output = ("...")
  3.  
  4. walk = arcpy.da.Walk(workspace, topdown=True, datatype= "RasterDataset", type = "TIF")
  5.  
  6. for dirpath, dirnames, filenames in walk:
  7. for filename in filenames:
  8. rasters = arcpy.ListRasters("*", "TIF")
  9. print rasters
  10.  
  11. None
  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20.  
  21. workspace = ("...")
  22. output = ("...")
  23.  
  24. walk = arcpy.da.Walk(workspace, topdown=True, datatype= "RasterDataset", type = "TIF")
  25.  
  26. for dirpath, dirnames, filenames in walk:
  27. for filename in filenames:
  28. print filename
Add Comment
Please, Sign In to add comment