Guest User

Untitled

a guest
Jul 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. import os
  2. import arcpy
  3. workspace = r"C:UserslawtondRastersWoody"
  4.  
  5. walk = arcpy.da.Walk(workspace, type="GRID")
  6. output_location = r"C:UserslawtondRastersWoody"
  7.  
  8. for dirpath, dirnames, filenames in walk:
  9. for file in filenames:
  10. if "woody13" in file:
  11. list_raster.append(file)
  12.  
  13. print (list_raster)
  14.  
  15. arcpy.MosaicToNewRaster_management (list_raster, output_location, "merged_woody_2013.tif","1", "FIRST")
  16.  
  17. Message File Name Line Position
  18. Traceback
  19. <module> <module3> 18
  20. MosaicToNewRaster C:Program Files (x86)ArcGISDesktop10.3ArcPyarcpymanagement.py 13191
  21. ExecuteError: ERROR 000622: Failed to execute (Mosaic To New Raster). Parameters are not valid.
  22. ERROR 000628: Cannot set input into parameter coordinate_system_for_the_raster.
Add Comment
Please, Sign In to add comment