-
Notifications
You must be signed in to change notification settings - Fork 41
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
hard-coded dimension name in ImageCollectionClient.band() #93
Comments
Under #77 I already improved metadata handling in the client, so what you suggest should be pretty straightforward |
…f hardcoded "spectral_bands"
…stead of hardcoded "spectral_bands"
…data instead of hardcoded "spectral_bands"
…f hardcoded "spectral_bands"
Update: it's less straightforward as I hoped because the metadata (possibly) changes with every operation, which is not yet implemented. For example, when you do bit of basic "band math" the metadata ends up empty at some point and things break down. |
The issue here is with the dimension name, in the latest workshop, we decided to use 'bands' for this well known dimension. |
minor note: the API spec only recommends the dimension name "bands", it does not enforce it (as far as I currently understand). So while this is clearly better and fixes the original issue for most cases, it still might pop up later. |
…band metadata parsing - move metadata handling to own openeo.metadata module - add "parsing" of dimensions metadata (name, extent) - do early warning instead of lazy loading - drop support for old VITO band spec
…pectral_bands", "temporal") - bump version so users can stick to older client version if dimension name checks are too aggressive for their backend - recommended temporal dimension name is "t" - recommended bands dimension name is "bands" other refs: Open-EO#123, Open-EO#132, Open-EO#128
merged the fixes in master |
The band() method (which is a reduce over the spectral dimension) hard-codes "spectral_bands" as the dimension name for the spectral dimension of a collection. However, this info should be read from the collection metadata of the backend, since it may vary.
An option would be to send a request to /collections/collection_name when the load_collection() method is used in the client and store the collection metadata locally (temporarily, just for the current session).
Related to issue 25 in openeo-python-driver
The text was updated successfully, but these errors were encountered: