Maintaining decimals in a raster and building a raster attribute table

3903
1
06-12-2015 02:25 PM
PhilC_
by
New Contributor

Hi,

 

I have a population dataset raster I created from a point to raster conversion.   I need to run some analysis on it and need a raster attribute table. I would also like to keep the accuracy of my data, as it contains decimals.

 

I understand that I cannot create a raster attribute table with a 32 bit floating point raster.  I tried a work around by multiplying by 100 to get integers (while maintaining my true numbers), however, I keep on getting errors in my raster calculator:

 

File "<string>", line 8, in rcexec

AttributeError: 'str' object has no attribute 'save'

 

 

Failed to execute (RasterCalculator).

 

This has been a wall.  Any help with building a raster attribute table with decimals and/or fixing this error in raster calculator?  Note: I cannot simply use the integer tool as I lose too much information.

 

Thanks,

 

Phil

(Not a primary GIS person)

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

lets see you raster calculator expression

alternate, use the multiply tool, then the int tool then deal with the decimal placement once you get it...may have to export the table though

0 Kudos