Skip to content

Commit 6f075ca

Browse files
authoredJun 3, 2019
Merge pull request #30056 from qgis/backport-29992-to-release-3_4
[Backport release-3_4] [processing] fix NDVI calculation
2 parents 1fcc982 + c75fd57 commit 6f075ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/qgis/ui/RasterCalculatorWidgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def okPressed(self):
120120

121121
class ExpressionWidget(BASE, WIDGET):
122122

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

125125
def __init__(self, options):
126126
super(ExpressionWidget, self).__init__(None)

0 commit comments

Comments
 (0)
Please sign in to comment.