I have an RGB raster that I'm calculating color-based indices from. When I do the calculations manually, I can select a certain band of the RGB raster to calculate. I need to do the same operations on a folder of rasters, so I use ModelBuilder to iterate the folder, but I don't can't select the individual R, G, B layers from each raster and do calculations on them
I've found this question, and have defined the Raster Calculator expression as such, but I receive the following error: