Skip to content

Commit a6e91bc

Browse files
committed
Remove old alerts code; fix a Docker warning
1 parent 201bd2d commit a6e91bc

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

app/routes/titiler/algorithms/alerts.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -126,29 +126,6 @@ def create_mask(self):
126126
)
127127
mask *= end_mask
128128

129-
# We apply the tree cover filters for both "true_color" and "encoded".
130-
if self.tree_cover_density_mask:
131-
mask *= (
132-
self.tree_cover_density_data.array[0, :, :]
133-
>= self.tree_cover_density_mask
134-
)
135-
136-
if self.tree_cover_height_mask:
137-
mask *= (
138-
self.tree_cover_height_data.array[0, :, :]
139-
>= self.tree_cover_height_mask
140-
)
141-
142-
if self.tree_cover_loss_mask:
143-
# Tree cover loss data before 2020 can't be used to filter out pixels as not forest.
144-
# Instead, we use tree cover height taken that year as source of truth.
145-
# For example, if a pixel had tree cover loss in 2018, but has tree cover
146-
# height (2020) that meets the forest threshold, the pixel meets
147-
# the forest criteria for alerts and is not masked out.
148-
mask *= (
149-
self.tree_cover_loss_data.array[0, :, :] > self.tree_cover_loss_mask
150-
) | (self.tree_cover_loss_data.array[0, :, :] <= 2020)
151-
152129
if self.tree_cover_density_mask:
153130
mask *= (
154131
self.tree_cover_density_data.array[0, :, :]

docker-compose.dev.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.5"
2-
31
services:
42
app:
53
build:

0 commit comments

Comments
 (0)