Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #29992 from ghtmtt/processing_ndvi
[processing] fix NDVI calculation formula in builtin raster calculator
  • Loading branch information
luipir committed Jun 3, 2019
2 parents 7ec417f + cf634aa commit 357328a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -122,7 +122,7 @@ def okPressed(self):

class ExpressionWidget(BASE, WIDGET):

_expressions = {"NDVI": "([NIR] - [Red]) % ([NIR] + [Red])"}
_expressions = {"NDVI": "([NIR] - [Red]) / ([NIR] + [Red])"}

def __init__(self, options):
super(ExpressionWidget, self).__init__(None)
Expand Down

0 comments on commit 357328a

Please sign in to comment.