Skip to content

Commit

Permalink
Merge pull request #30056 from qgis/backport-29992-to-release-3_4
Browse files Browse the repository at this point in the history
[Backport release-3_4] [processing] fix NDVI calculation
  • Loading branch information
luipir committed Jun 3, 2019
2 parents 1fcc982 + c75fd57 commit 6f075ca
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -120,7 +120,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 6f075ca

Please sign in to comment.