-
Notifications
You must be signed in to change notification settings - Fork 42
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
load_stac: "Invalid band name/index" warning for https://stac.terrascope.be/collections/sentinel-2-l2a #692
Comments
Url shows valid with radiant earth viewer: |
I can not reproduce that original error. At the moment I get (snippet slimmed down to essential parts): connection = openeo.connect(url="openeo-dev.vito.be")
s2_datacube = connection.load_stac(
"https://stac.terrascope.be/collections/sentinel-2-l2a",
bands=["B02", "B04", "B08", "SCL_20m"],
) ->
so here it complains about (FYI: I'm using current master branch of client here, which is after 0.36.0) |
FYI to simplify reproducing/debugging: you just have to do this to see how client extracts band list from stac: import openeo.metadata
metadata = openeo.metadata.metadata_from_stac(
"https://stac.terrascope.be/collections/sentinel-2-l2a"
)
# print(metadata.band_dimension)
print(metadata.band_names) -> Comparable issue reported by Joris C: metadata = openeo.metadata.metadata_from_stac(
"https://stac.dataspace.copernicus.eu/v1/collections/sentinel-2-l2a"
)
# print(metadata.band_dimension)
print(metadata.band_names) -> |
The client is unable to detect the bands for this STAC Collection; why? The error message (actually: a warning) is apparently intimidating so could be improved as well.
The job finishes successfully so the back-end is able to cope.
Client error:
The text was updated successfully, but these errors were encountered: