From 6fe4291c7cf31add23d3cc4b58ab9afb5f588fb1 Mon Sep 17 00:00:00 2001 From: Solomon Negusse Date: Mon, 4 Nov 2024 22:13:23 +0300 Subject: [PATCH] fix TCL mask for DIST alert --- app/routes/titiler/algorithms/dist_alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/titiler/algorithms/dist_alerts.py b/app/routes/titiler/algorithms/dist_alerts.py index b21b6fcf..a025ce6c 100644 --- a/app/routes/titiler/algorithms/dist_alerts.py +++ b/app/routes/titiler/algorithms/dist_alerts.py @@ -58,7 +58,7 @@ def create_mask(self): # 2018, but has tree cover height (2020) that meets the forest threshold, the pixel meets # the forest criteria for alerts. mask *= ( - self.tree_cover_loss_data.array[0, :, :] >= self.tree_cover_loss_mask + self.tree_cover_loss_data.array[0, :, :] > self.tree_cover_loss_mask ) | (self.tree_cover_loss_data.array[0, :, :] <= 2020) return mask