stactools-packages / sentinel2

stactools package for Sentinel-2
Other
16 stars 5 forks source link

Better errors for edge cases #158

Closed philvarner closed 5 months ago

philvarner commented 5 months ago

Related issues

Description

  1. Some scenes that cross the antimeridian and poles produce correct geometry when running on arm64, but incorrect when running on amd64. This change checks that the area of the geometry is larger than a correct one should be, that the creation of it fails, which is seen as better than outputting a bad geometry. Hopefully, we'll be able to figure out the underlying cause of this in the future

  2. produce a ValueError for scenes that have a geometry of type Polygon with no coordinates (e.g., [ [ ] ]). This is probably a bug in the Singergize processing, since a Polygon with coordinates is invalid. This happens when there's no data in the scene after the L2A processing, even though there was some in the L1C processing. The ValueError will allow consumers to mark these scenes as invalid.

Checklist