How to change value in raster layer?

7175
11
03-01-2016 10:20 PM
SathapornMonjung
New Contributor

Dear All,

I have created future temperature raster (tiff format) in ArcGIS. However I want all pixel's value to be multiply with 10 (constant value). I tried to use con tool in spatial analysis, but it didn't work or may be I set incorrect parameter. Can anyone help me to solve this problem. Thank you in advance,

0 Kudos
11 Replies
JayantaPoddar
MVP Esteemed Contributor

Try Raster Calculator (Spatial Analyst)

Building expressions in Raster Calculator—Help | ArcGIS for Desktop

with following expression

"Raster1" * 10



Think Location
0 Kudos
SathapornMonjung
New Contributor

Thanks, I already tried but it was unsuccessful and got error.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

What is the error you are getting? Could you attach a snapshot of the error?



Think Location
0 Kudos
SathapornMonjung
New Contributor

Thanks, error shown below error.jpg

0 Kudos
AjitkumarBabar
Occasional Contributor II

Have you tried Reclassify (Spatial Analyst) tool?

0 Kudos
SathapornMonjung
New Contributor

I did not try reclassify because I want each pixel's value to be multiply by 10. I guess that reclassify attempt to classify value by range.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Are you trying to call Raster Calculator from within Python code. Then Check this

41859 - ERROR 000539: Error running expression: rcexec()



Think Location
SathapornMonjung
New Contributor

Thanks Jayanta. I just called raster calculator from Arctollbox. I am not an expert in Python.

Could you please explain me more details? Thank you

0 Kudos
DanPatterson_Retired
MVP Emeritus

In Jayanta's link, replace

outMinus = Minus(inRaster1, inRaster2)

substituting th raster names and the function name as appropriate

0 Kudos