-
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
Reduce_temporal throws MetadataException after load_stac #567
Comments
as discussed, a workaround would be to keep the openeo package below 0.29 for now |
Another workaround is to add the following: |
Started with a PR at #568 |
I already merged an initial fix that avoids throwing the next steps are properly detecting real properties of the temporal dimension |
@soxofaan @VictorVerhaert this method parses already correctly the dimensions, why not re using that? It seems we are trying to re-implement something that already exists: openeo-python-client/openeo/metadata.py Line 413 in 3c6045b
|
…imension name in `load_stac` - move logic to _StacMetadataParser (less logic nesting) - improve test coverage (and add DummyStacDictBuilder utility)
…poral dimension name in `load_stac`
…ual temporal dimension name in `load_stac`
… of actual temporal dimension name in `load_stac`
…tection of actual temporal dimension name in `load_stac`
I think this can now be closed with #591 being merged |
When using load_stac, the python client tries to read metadata from the provided stac. The only metadata currently being read is bands, so no spatial or temporal metadata.
When the python client fails to read metadata from the stac, metadata is simply set to None.
These lines check is metadata is present and have default behaviour otherwise:
openeo-python-client/openeo/rest/datacube.py
Lines 1350 to 1359 in 36ecc2b
and
openeo-python-client/openeo/rest/datacube.py
Line 1216 in 36ecc2b
The problem arises however when metadata IS being read from the STAC. As only bands are read
cube.metadata
is not None, but it does not contain a temporal dimension resulting in a MetadataException originating for example from:openeo-python-client/openeo/metadata.py
Lines 271 to 275 in 36ecc2b
The solution is threefold I think:
The text was updated successfully, but these errors were encountered: