From 22ce2dbd74899c1dd8cc323d20dc5ccf2c4ef3d9 Mon Sep 17 00:00:00 2001 From: edblanch <30548623+edblanch@users.noreply.github.com> Date: Wed, 19 Feb 2020 22:22:32 +1100 Subject: [PATCH] Update formulas.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘ExcessGreen’: { ‘expr’: '(2*G)-(R+B), ‘help’: ‘Excess Green Index emphasizes the greenness of leafy crops such as potatoes.’, ‘range’: (-50,150) }, --- app/api/formulas.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/api/formulas.py b/app/api/formulas.py index 745d4f1e..c1274dbc 100644 --- a/app/api/formulas.py +++ b/app/api/formulas.py @@ -23,6 +23,13 @@ algos = { 'help': 'Visual Atmospheric Resistance Index shows the areas of vegetation.', 'range': (-1, 1) }, + ‘ExcessGreen’: { + ‘expr’: '(2*G)-(R+B), + ‘help’: ‘Excess Green Index emphasizes the greenness of leafy crops such as potatoes.’, + ‘range’: (-50,150) + }, + + 'BAI': { 'expr': '1.0 / (((0.1 - R) ** 2) + ((0.06 - N) ** 2))', 'help': 'Burn Area Index hightlights burned land in the red to near-infrared spectrum.'