rgthurau

Zonal statistics as table: "cannot set input into parameter..."

Discussion created by rgthurau on Mar 8, 2011
Latest reply on Dec 8, 2011 by rgthurau
Hi,
I'm trying to calculate statistics for multi-band raster based on an integer (zone) raster. I'm using the following code:

inZoneData = "P:/AOI_ras.img"
zoneField = "Value"
inValueRaster1 = "P:/bloom_mos1_stack1.img/Layer_1"
outTable1 = "P:/Stats/Lay1_stats"

arcpy.CheckOutExtension("Spatial")
# Execute ZonalStatistics as table
ZonalStatisticsAsTable(inZoneData, zoneField, inValueRaster1, outTable1, "ALL", "NODATA")

Seems simple enough, I've used this tool many times before in modelbuilder. Not today though. Python is returning the following error message:
"ExecuteError: ERROR 000622: Failed to execute (Zonal Statistics as Table). Parameters are not valid.
ERROR 000628: Cannot set input into parameter ignore_nodata."

I've messed around with setting the nodata parameter to "DATA", "NODATA", and left it blank (it is an optional parameter), but I get this same message everytime.

Anyone have any suggestions?

Thanks

Rich

Outcomes