Extract By Mask tons of satellite imagery (rasters) with different cloud mask using codes?

Discussion created by zoexili on Aug 27, 2017
Latest reply on Aug 31, 2017 by zoexili

Satellite images are stored in many folders named with different dates. Right now, I am using arcgis desktop 10.4.1 Extract By Mask (batch) to remove clouds. Each time of batch processing, I can only finish one folder's images ( which are 6 images in total) because different folders have different masks. The speed is way too slow because I have more than 500 images waiting for me to extract. Is it possible to do it with a loop?? Any ideas?? Thank you!