Skip to content

Commit

Permalink
FIX: Fix Sentinel-2 Theia footprints when the nodata area is wider th…
Browse files Browse the repository at this point in the history
…an the data area #201
  • Loading branch information
remi-braun committed Jan 22, 2025
1 parent e4777f6 commit 025bf52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.21.10 (2024-mm-dd)

- FIX: Fix Sentinel-2 Theia footprints when the nodata area is wider than the data area ([#201](https://github.com/sertit/eoreader/issues/201))

## 0.21.9 (2024-01-22)

- FIX: Better management of temporary directories (name, cleaning, etc)
Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/optical/s2_theia_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def footprint(self) -> gpd.GeoDataFrame:
mask = utils.read(edg_path, masked=False)

# Vectorize the nodata band
footprint = rasters.vectorize(mask, values=0, default_nodata=-1)
footprint = rasters.vectorize(mask, values=0, default_nodata=1)
footprint = geometry.get_wider_exterior(footprint)
footprint.geometry = footprint.geometry.convex_hull

Expand Down

0 comments on commit 025bf52

Please sign in to comment.