Skip to content

Commit

Permalink
fix TCL mask for DIST alert
Browse files Browse the repository at this point in the history
  • Loading branch information
solomon-negusse committed Nov 4, 2024
1 parent 7f968e8 commit 6fe4291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/titiler/algorithms/dist_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6fe4291

Please sign in to comment.