I'm trying to build a tool that clips multiple rasters to the extent of an input feature. The user should be able to composite the output rasters afterwards.
My parameters are set correctly, however, I receive an error stating that the input rasters "does not exist or is not supported".
My code so far is below:
inraster = arcpy.GetParameterAsText(0)clipfeature = arcpy.GetParameterAsText(1)outraster = arcpy.GetParameterAsText(2)compraster = arcpy.GetParameterAsText(3)arcpy.Clip_management(inraster, "401661.04200072 4644671.44218965 439411.326372007 4674592.5426897", outraster, clipfeature, "-1,", "ClippingGeometry", "NO_MAINTAIN_EXTENT")if (compraster) == True: arcpy.CompositeBands_management(outraster, compbands.tif) arcpy.AddMessage('User Runs Composite Bands Tool on Selected Bands')else: arcpy.AddMessage('Composite Bands Failed To Execute')
أكثر...
My parameters are set correctly, however, I receive an error stating that the input rasters "does not exist or is not supported".
My code so far is below:
inraster = arcpy.GetParameterAsText(0)clipfeature = arcpy.GetParameterAsText(1)outraster = arcpy.GetParameterAsText(2)compraster = arcpy.GetParameterAsText(3)arcpy.Clip_management(inraster, "401661.04200072 4644671.44218965 439411.326372007 4674592.5426897", outraster, clipfeature, "-1,", "ClippingGeometry", "NO_MAINTAIN_EXTENT")if (compraster) == True: arcpy.CompositeBands_management(outraster, compbands.tif) arcpy.AddMessage('User Runs Composite Bands Tool on Selected Bands')else: arcpy.AddMessage('Composite Bands Failed To Execute')
أكثر...