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 a simple model that iterates through folders to collect imagery, mosaics them and clips the mosaic to a study area boundary. I need to produce an NDVI from the clipped 4-band mosaic "sa11_4band.tif" by incorporating the raster calculator into the model. The problem I am encountering is that the individual bands do not appear in the raster calculator when I incorporate the raster calculator tool. How should I separate the raster bands from "sa11_4band.tif" in order to perform the necessary calculation in the raster calculator?:

Float("sa11_4band.tif - Band_4"-"sa11_4band.tif - Band_3")/Float("sa11_4band.tif - Band_4" + "sa11_4band.tif - Band_3") 

enter image description here

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Typically with most ArcGIS raster tools if you need to access an individual band you refer to it as an extension to the file name.

For example: c:\path\to\my\raster.tif\band1

I haven't had to use this since 9.3, but it definitely worked in the calculator then. I never used it in a model, but it should work the same since the model is just calling the calculator tool.

share|improve this answer
    
Would this apply given that the 4-band mosaic has not been created until right before the raster calculator is called in the model? –  Aaron Jan 15 '13 at 16:06
    
I'm not sure. I would think so as long as the file is not in memory. –  Brian Jan 15 '13 at 16:34
add comment

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.