Skip to content
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

rename_labels for temporal dimension not allowed #274

Closed
clausmichele opened this issue Feb 14, 2022 · 2 comments
Closed

rename_labels for temporal dimension not allowed #274

clausmichele opened this issue Feb 14, 2022 · 2 comments

Comments

@clausmichele
Copy link
Member

I am trying to rename the temporal labels of a datacube using the python client, but I'm getting the following error:
MetadataException: Trying to rename labels of dimension DATE of type temporal, which is not supported.

However, from the process definition there are not limits on which dimension we can use this process https://processes.openeo.org/#rename_labels

@m-mohr can you confirm that the rename_labels process can be used also for the temporal dimension?

@clausmichele
Copy link
Member Author

Solved with this workaround:

args_rename_labels = {'data': THIS,'dimension':'DATE','target':mst_slv_temporal_labels}
S1_slant_range_mst_bands = S1_slant_range_mst_bands.process("rename_labels",args_rename_labels)

@m-mohr
Copy link
Member

m-mohr commented Feb 14, 2022

Should be possible. If the provider doesn't support non-temporal labels for temporal dimensions the dimension type should probably change (to "other" or so).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants