I have two subfolders with Rasters named with the same parameters.
I am trying to figure out a way to Loop a multiplication of each raster into a folder with its pair of the other subfolder.
Looks like:.
SubFolder 1 SubFolder2 Result
178056_WGS.tif 178056_Clean.tif 178056_Mlt.tif
178057_WGS.tif 178057_Clean.tif 178056_Mlt.tif
178058_WGS.tif 178058_Clean.tif 178056_Mlt.tif
178059_WGS.tif 178059_Clean.tif 178056_Mlt.tif
Another option is to have all Raster in the same folder (workspace) but it is not at all desirable. Do you have any suggestion to do it in Arcgis 10.1 with Python (arcpy)?
Best Answer
Here is one approach that utilizes the glob module: