I have this simple piece of python code to test whether a raster has integer values or not:
res = arcpy.GetRasterProperties_management(ws, 'VALUETYPE') res = res.getOutput(0) if res > 8: print res
I run this in a loop for a number of rasters. Problem is, it prints out a list of 3's.
I'm guessing that the 'res' variable is not a single number at all and when you do a logical test on it, it looks at a certain attribute and when you
Can anyone explain how I should do this test properly?