Replies: 2 comments
-
I would need to double check the source, but I think that the CRS of an item is tied to the In [1]: import shapely, pystac_client, stackstac, planetary_computer
In [2]: poly = shapely.from_wkt("POLYGON ((-137.8227033237725 59.43881852787066, -137.85202575601502 59.52747473469491, -138.02588212273236 59.51238228891469, -137.99614605332758 59.4237653545415, -137.8227033237725 59.43881852787066))")
In [3]: api = pystac_client.Client.open("https://planetarycomputer.microsoft.com/api/stac/v1")
In [4]: date_range = f'2020-04-01/2020-08-30'
...:
...: this_items = api.search(
...: collections = ['sentinel-2-l2a'],
...: bbox=poly.bounds,
...: query={"eo:cloud_cover": {"lt": 70}},
...: datetime = date_range,
...: ).get_all_items()
In [5]: set(x.properties["s2:mgrs_tile"] for x in this_items)
Out[5]: {'07VFF', '07VFG', '08VLL', '08VLM'} In your post, you say
That would be unexpected, but I don't think it's happening here. The message from stackstac is saying that some of the assets have a different CRS from some other assets (across all items, not within a single item). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is having multiple coordinate reference systems across different band Assets in a single granule and date expected?
Beta Was this translation helpful? Give feedback.
All reactions