hudrouin

Spatial Statistics multi-bands raster

Discussion created by hudrouin on Oct 12, 2011
Latest reply on Oct 12, 2011 by tomdilts
Hi,

I am a real beginner to Python!  I want to calculate statistics for a single raster file with 10 bands but I can't get it to loop through all the bands. I am able to list my bands using arcpy.Describe(file_x)  and file_x.children ...I can extract stats for band 1 but can't get it to loop to the next band when I want to use this tool :

outZSaT = ZonalStatisticsAsTable(inZoneData, zoneField, inValueRaster, outTable, "NODATA", MEAN")

I am not sure how to call or loop through my bands ?

Please, any help is welcome.

Cheers

Outcomes