Hot answers tagged

1

you can replace the list raster with glob.glob in order to get the list of your raster : import glob, arcpy list_composites = [] list_images = glob.glob("path_to_your_image.SAFE\GRANULE\*\IMG_DATA\*B01.jp2") #first band in each folder for image in list_images: rasters = glob.glob(image[:-6]+"*") #all bands in one folder ...



Only top voted, non community-wiki answers of a minimum length are eligible