Hi! Please help me! I created a script a few weeks ago which would create an ROI using the clipping geometry tool from a shapefile. The script had originally worked and now will only error out. I cannot for the life of me figure out what went wrong. I'm very new to coding and non of my professors can help me to determine what is happening. Here is a copy of my script:
import arcpy
arcpy.env.workspace= r'D:\rmnp\SamSOrgNDVIData\ND 1989 - 1999\nd1990'
out_raster= r'D:\rmnp\SamSOrgNDVIData\Test1990\\'
rastList= arcpy.ListRasters()
for rast in rastList:
arcpy.Clip_management(rast, "#", out_raster + rast[:-4] + 'Clipped.tif', 'D:\\Shape File Buffer\\RMNPBuff1km.shp', '#', "ClippingGeometry")
Every time I try to run it I get the error: Traceback (most recent call last):
File "D:/fack.py", line 6, in <module>
arcpy.Clip_management(rast, "#", out_raster + rast[:-4] + 'Clipped.tif', 'D:\\Shape File Buffer\\RMNPBuff1km.shp', '#', "ClippingGeometry")
File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py", line 12021, in Clip
raise e
ExecuteError: ERROR 999999: Error executing function.
Failed to execute (Clip).