Raster Calculator

4044
10
07-23-2012 11:27 PM
WersusBarckowich
New Contributor
Hello!
I try to calculate NDVI using Raster Calculator:

But result has only three values (and three colors): -1, 0 and +1.
What am I doing wrong?
Thanks!
0 Kudos
10 Replies
curtvprice
MVP Esteemed Contributor
This is a feature of Python 2.x. When you divide two integers, you will will get integer output:

>>> 1 / 2
0
>>> 1 / 2.0
0.5
>>> float(1) / 2
0.5
 


(post #1000!)
0 Kudos