From 77ea2c827dac86a28fb54b4c464644ad0790fb2d Mon Sep 17 00:00:00 2001 From: Saijin-Naib <19295950+Saijin-Naib@users.noreply.github.com> Date: Thu, 28 Oct 2021 13:19:03 -0400 Subject: [PATCH] Update formulas.py Fix syntax for power operator to ** --- app/api/formulas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/formulas.py b/app/api/formulas.py index 7601650b..b4cfe9ae 100644 --- a/app/api/formulas.py +++ b/app/api/formulas.py @@ -20,7 +20,7 @@ algos = { 'help': _('Enhanced Normalized Difference Vegetation Index is like NDVI, but uses Blue and Green bands instead of only Red to isolate plant health.') }, 'vNDVI':{ - 'expr': '0.5268*((R ^ -0.1294) * (G ^ 0.3389) * (B ^ -0.3118))', + 'expr': '0.5268*((R ** -0.1294) * (G ** 0.3389) * (B ** -0.3118))', 'help': _('Visible NDVI is an un-normalized index for RGB sensors using constants derived from citrus, grape, and sugarcane crop data.') }, 'VARI': {