import arcpy, os arcpy.env.workspace = r'G:\WIU\Geog408\deng_lab4\Thermal_south_results\May\deg_170' arcpy.env.overwriteOutput = True # Clip region poly = r'C:\testing\TestData\clipReg.shp' out_folder = r'C:\testing\TestData\outputs' for raster in arcpy.ListRasters(): out_raster = os.path.join(out_folder,raster) arcpy.Clip_management(raster,'#',out_raster,poly,'#','ClippingGeometry') print 'Clipped: %s' %raster
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.