I am looking for any tool (or python code snippet) that can loop through a file folder of .jp2 images and determine which have 3 bands and which have 4 bands.
I am having trouble creating a raster dataset as some of them have 3 bands and others have 4. I need to isolate the band count and replace the images with only 3 bands. I am looking to output a text file that has the name of the file which has 3 bands.
Any thoughts?