I'm trying to calculate EVI in Arcmap using raster calculator. I put in this calculation
2.5 * ((Float("Band4") - "Band3")) / (Float("Band4") + 6 * "Band3" - 7.5 *"Band1" + 1))
and the output is syntax error. Do you know what I'm doing wrong?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI'm trying to calculate EVI in Arcmap using raster calculator. I put in this calculation
2.5 * ((Float("Band4") - "Band3")) / (Float("Band4") + 6 * "Band3" - 7.5 *"Band1" + 1))
and the output is syntax error. Do you know what I'm doing wrong?
You add an extra parenthesis.
Instead of
2.5 * ((Float("Band4") - "Band3")) / (Float("Band4") + 6 * "Band3" - 7.5 *"Band1" + 1))
It should be
2.5 * ((Float("Band4") - "Band3")) / (Float("Band4") + 6 * "Band3" - 7.5 *"Band1" + 1)
Or better
2.5 * Float("Band4" - "Band3") / (Float("Band4") + 6.0 * Float("Band3") - 7.5 * Float("Band1") + 1.0)
Float
around the integer addition/subtraction won't stop any integer overflow. Also, if the OP is using Float, that suggests that the data is not reflectance values but digital numbers and EVI needs to be calculated using reflectance.
– user2856
Mar 24 '18 at 3:38