1

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: enter image description here

0
2

I am guessing those mysterious spaces after G:\ are your attempt to make your file path anonymous?

Your output file name is invalid. "cml.tif&_nred" is not a valid file geodatabase name. You cannot have symbols like "." or "&" in the raster name. A valid name would by something like "cml_tif_nred". Have a look at the model only Parse Path tool.

1
  • Indeed, it's a proprietary eponym that I can't disclose. The & wasn't the problem but the whole xxx.tif_yyy. I used the Parse Path on the tif Name, and it works. Thanks. – HDunn Dec 18 '13 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.