I am trying to figure out a way to input corresponding raster datasets from two separate folders into an equation using arcpy.
I think it requires some sort of nested loop but I can't figure out how to do this so that only corresponding rasters are inputted into the equation.
For the sake of this example lets say I have two folders with rasters listed in them as follows:
Folder 1 Folder 2 WC_top_2008 WC_int_2008 WC_top_2009 WC_int_2009 WC_top_2010 WC_int_2010 WC_top_2011 WC_int_2011 WC_top_2012 WC_int_2012
If I wanted to multiply the corresponding years in each dataset by one another (i.e. WC_top_2008 * WC_int_2008, WC_top_2009 * WC_int_2009 etc.).
How would I do this in arcpy?
I am using ArcGIS 10 with spatial analyst.