I have been working on this script for a week or more, and I don't think it should be taking this long, but I can figure it out. I have finally (hopefully) got the looping issue taken care of, but it tells me that Name is not defined, and when i define it. I then get the error: <class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid.
ERROR 000860: Input raster: is not the type of Composite Geodataset, or does not exist.
ERROR 000859: The required parameter Output raster layer name is empty, or is not the type of Raster Layer.