Using overloaded arcpy addition (+) operator you can add constant value to raster.
constantValue = 5
outputRaster = inputRaster + constantValue
Now every cell value of outputRaster
will be incremented by 5.
Apparently this is a great approach. You are just using simple addition operation. But the problem is outputRaster
won't have any attribute table even if inputRaster
has one. Because when you are adding two rasters if one of the rasters doesn't have attribute table, the output raster won't have one.