-
Notifications
You must be signed in to change notification settings - Fork 10
Sentinel-1-RTC proj metadata issues #158
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
Comments
Thanks for the report! IIUC, |
@TomAugspurger that's correct. For bbox I expect the proj:xxxx metadata to match rasterio outputs: Also see: with rasterio.open(url) as src:
left = src.transform[2]
top = src.transform[5]
right, bottom = src.transform * (src.width, src.height)
# equivalent to list(src.bounds)
bbox = [left, bottom, right, top]
# [519100.0, 5236570.0, 807030.0, 5454150.0] |
We've fixed the In [4]: pystac.read_file("https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-1-rtc/items/S1A_IW_GRDH_1SDV_20220805T015427_20220805T015452_044411_054CC1_rtc").properties["proj:shape"]
Out[4]: [21758, 28793] Our partners at Catalyst are also looking into the |
The In [1]: import pystac
In [2]: pystac.read_file("https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-1-rtc/items/S1A_IW_GRDH_1SDV_20220805T015427_20220805T015452_044411_054CC1_rtc").properties["proj:shape"]
Out[2]: [21758, 28793]
In [3]: pystac.read_file("https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-1-rtc/items/S1A_IW_GRDH_1SDV_20220805T015427_20220805T015452_044411_054CC1_rtc").properties["proj:bbox"]
Out[3]: [519100.0, 5236570.0, 807030.0, 5454150.0] (previously that was Thanks again for the report and let us know how things go! |
Uh oh!
There was an error while loading. Please reload this page.
I noticed recently that
proj:shape
andproj:bbox
are incorrect for some S1 RTC products. According to https://github.com/stac-extensions/projection#projshape shape should be in Y,X order, but s1-rtc has it flipped:https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-1-rtc/items/S1A_IW_GRDH_1SDV_20220805T015427_20220805T015452_044411_054CC1_rtc
As a consequence it appears
proj:bbox
is also off (proj:transform
is fine):possibly related: gjoseph92/stackstac#196
The text was updated successfully, but these errors were encountered: