Select to view content in your preferred language

Iterate over bands in multi band raster

137
2
3 weeks ago
Labels (2)
DavidMedeiros
Frequent Contributor

I'm helping a researcher run a Zonal Statistics analysis for counties over a multi band raster of yearly average temperatures for the US. The temp data is stored in a either 12 band TIF or a .nc (NetCDF) file. The goal is to use model builder to iterate over the bands so the researcher is not manually running Zonal Stats for each month (12 times for every year they need). But when I load up model builder, I don't see an obvious way to iterate bands in a single raster. Any help is appreciated. 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

 I moved this inquiry to arcgis spatial analyst questions

It was languishing, lost and forgotten

perhaps better luck in this location.

On that note, you might have better success with python/numpy/scipy 


... sort of retired...
0 Kudos
Luke_Pinner
MVP Regular Contributor

Haven't tried but if it works the same as arcpy.ListRasters, you could set the workspace to the multiband raster and use Iterate Rasters to list each raster band.