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