I am trying to clip about 36 rasters by a polygon. However, I am running into an error. It isn't a coding problem with the loop because I receive the same error when I run the function on a single raster. Here is my code:
# Import system modules import arcpy import os # Set environment settings arcpy.env.workspace = r"H:\GIS Project\reprojected_rasters" #The file where your files are arcpy.env.overwriteOutput = True outWorkspace = r"H:\GIS Project\clipped_rasters" #where you want the new rasters to go arcpy.env.parallelProcessingFactor = "50" clipping_shp = r"H:\GIS Project\large AF dataset\point_feature_class\clipping.shp" rasters = arcpy.ListRasters("*","TIF") print rasters arcpy.Clip_management ("SND_100_200_EV_N_P_AU_NAT_C_20140801.tif", "131.183300 -37.714100 152.250000 -16.056200", r"H:\GIS Project\clipped_rasters" , clipping_shp, "ClippingGeometry" , "NO_MAINTAIN_EXTENT") print "Clipped Script ran ok"
However, when I try to run this code, I receive the following error:
Traceback (most recent call last): File "<module2>", line 21, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 13594, in Clip raise e ExecuteError: ERROR 000622: Failed to execute (Clip). Parameters are not valid. ERROR 000800: The value is not a member of ClippingGeometry | NONE.
Here is some information about my data:
- all are .tif files
- all are projected into the same datum (GDA 1994 Australian Albers)
- The clipping polygon was made from using the minimum extent function of a point feature class