-
Notifications
You must be signed in to change notification settings - Fork 4
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
Automatically detect dim names #9
Comments
Although defined in cube:dimensions, this is generally talking about datacubes, so there are at least recommendations available: Maybe we should move this to a more general place in the API spec? |
@m-mohr I was actually thinking about STAC Collections that do not contain the cube:dimensions property, like https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a
|
Yes, exactly. The S2 L2A provided is not (really) a datacube, in this case I'd load the data into a datacube as proposed in the screenshot above (so for S2 L2A usually x,y,t,bands). |
Ok, then I see two possibilities to clarify this scenario:
I would choose 1, adding some informative error messages for the scenario where a user tries to use the default dim names but the STAC Collection provide different ones. |
Yes, I think we should clarify that in load_stac. We more or less copy the text from the API to load_stac and if back-ends don't follow that convention, they can just change the process description. Processes would anyway throw an error if the dimension names are not present. |
I'm closing this issue since it's solved for the scope of the test suite. |
For the tests I'm writing, it would be good to automatically detect the dim names provided by the data collection.
For openEO collections is fairly easy, since the
cube:dimensions
field is required: https://api.openeo.org/#tag/EO-Data-Discovery/operation/describe-collectionHowever, when using
load_stac
, it is not obvious that the STAC metadata includes them. In the contect of the test suite is not an issue, since the sample STAC collection that I created does include the field.But generally at openEO level, it is not defined how the back-end should name the dimensions in the case no
cube:dimensions
filed is provided. Probably we will need to discuss about this in the next dev meeting or PSC.The text was updated successfully, but these errors were encountered: