Any help with the error message below would be appreciated.
arcpy.env.workspace = outbufferpath featureClassList = arcpy.ListFeatureClasses() for featureClass in featureClassList: for row in arcpy.da.SearchCursor(featureClass,'SHAPE@'): arcpy.management.Clip(raster, row.extent, outrasterpath + featureClass, featureClass, -3.402823e+38, "ClippingGeometry", "MAINTAIN_EXTENT") Traceback (most recent call last): File "<string>", line 3, in <module> File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\management.py", line 15215, in Clip raise e File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\management.py", line 15212, in Clip retval = convertArcObjectToPythonObject(gp.Clip_management(*gp_fixargs((in_raster, rectangle, out_raster, in_template_dataset, nodata_value, clipping_geometry, maintain_clipping_extent), True))) File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 496, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000445: Extension is invalid for the output raster format. Failed to execute (Clip).
Yes, clip management is the right one, outrasterpath is defined below:
# out path to clipped rasters outrasterpath = r"S:/General-Offices-GO-Trans/SLR-Mapping/GIS_Projects_2018/Smart_T_Line_Model/geodata/TEST_RASTERCLIP.gdb/"
Script is still not working.
from your script all I see is featureclasses, Where is the raster coming from?
Something is missing. Is the raster defined somewhere else?
arcpymanagementClipraster rowextent o
can you provide what is needed for your raster clip, like... raster, outrasterpath.
raster rowextent outrasterpath featureClass featureClass
also, you aren't specifying any file name for the raster so you will end up with esri grids which I am not sure if your nodata value minimum () is supported... maybe check that as well