0

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?

1

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)
  • 1
    I kind of disagree with your last expression. Wrapping Floataround 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.