Raster Calculator error

416
1
06-09-2012 06:13 AM
ROMANFILOZOF
New Contributor III
And one more problem.
I tried to calculate raster values in next way:
I have a raster with some values. I add to a model Calculate statistic tool, then Get raster properties tool. So as a result I have a variable that contains raster datasets mean value. Then I add Raster calculator tool and build a simple expression ("%My raster%">%Mean% ) to define the cells witch are greater than mean value. But the error appears.
What's wrong in that case?
0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor
In the line:

("%My raster%">%Mean% )

Try replacing %My raster% with the actual raster name. Failing that try the syntax

raster("xxx") > %Mean%

where xxx = raster name

Duncan
0 Kudos