Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Metadata/ Projection? #39

Open
kurtjoy opened this issue Apr 19, 2024 · 5 comments
Open

Incorrect Metadata/ Projection? #39

kurtjoy opened this issue Apr 19, 2024 · 5 comments

Comments

@kurtjoy
Copy link

kurtjoy commented Apr 19, 2024

Found a few granules with weird metadata.
if I do a request like:

https://earth-search.aws.element84.com/v1/collections/sentinel-2-c1-l2a/items?limit=12&datetime=2019-12-31T11:00:00.000Z/2020-01-14T11:00:00.000Z&bbox=173.4850878306321,-41.32156050393732,173.53181118851415,-41.30147765654245

It returns a number of tiles in the T01 UTM zone that are not in the UTM 60/59/58 Id expect for New Zealand. When I looked at the metadata for one of these anomalous granules.

https://earth-search.aws.element84.com/v1/collections/sentinel-2-c1-l2a/items/S2A_T01GBQ_20200123T220614_L2A

It shows that the projection is 32701 with a centroid of -65, -0.0058, and basically defines an area from NZ down to -90 lat and 360 of long

image

Cheers

Kurt

@kurtjoy
Copy link
Author

kurtjoy commented Apr 19, 2024

Should mention that the granule I gave as an example should be located here. (T01GBQ).
image

@kurtjoy kurtjoy changed the title Incorrect Metadata Incorrect Metadata/ Projection? Apr 19, 2024
@JonDHo
Copy link

JonDHo commented May 21, 2024

This appears to be the always-painful antimeridian issue. It seems that items which cross over antimeridian are split into multiple polygons and some of them wrap the wrong way around the globe. The effect of this is that these items show up in searches which are unrelated. For example, I am searching for data in Chile, but get this item: https://earth-search.aws.element84.com/v1/collections/sentinel-2-c1-l2a/items/S2A_T01LAJ_20211023T222802_L2A

The geometry of this item looks like this:
image

and zoomed in:
image

It is clear that the item is meant to straddle the antimeridian, but the lower part of the geometry wraps around the globe.

Other examples include:

@kurtjoy
Copy link
Author

kurtjoy commented May 21, 2024 via email

@JonDHo
Copy link

JonDHo commented May 22, 2024

@kurtjoy if you use shapely, then the is_valid property will return False for these entries, so that can help to identify the problematic ones.

@gary-downforce
Copy link

@kurtjoy if you use shapely, then the is_valid property will return False for these entries, so that can help to identify the problematic ones.

Unfortunately that isn't the case for ones I've seen in south-east Australia. I've been removing any items where the geometry is a multipolygon for my use case, but I'm concerned that I'm going to be missing valid data in other AoIs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants