Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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