I want to divide every cell of a raster by the raster's maximum cell value using ArcPy. Here is what I have done so far.
densityRaster = LineDensity(shapefileName, None, "", "", "") maxVal = arcpy.GetRasterProperties_management(densityRaster ,"MAXIMUM") normalRaster = densityRaster/maxVal #maxValue i get is 5.66
This gives me an error described below. Anybody has clues to where I get it wrong?
Runtime error : ERROR 000732: Input Raster: Dataset 5.666 does not exist or is not supported
If I enter
normalRaster = densityRaster/5.666, I get the correct result.