-
Notifications
You must be signed in to change notification settings - Fork 5
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
excessive adding of "band" dimensions #205
Comments
from https://processes.openeo.org/#add_dimension:
|
should be covered now |
"reduce_dimension" is applied I am getting also an error message This is the script:
I thought that for reduce_dimension should not be a problem. |
In first statement you do reduction of the "t" dimension, which indeed eliminates the "t" dimension, but the "bands" dimension is still there, so you can not add another bands dimension in the second statement |
Originates from discussion on forum https://discuss.eodc.eu/t/exclusion-mask/441 (unfortunately user started this as private message instead of forum topic)
user does a couple of operations like
The first one is ok: first eliminate the "bands" dimension and add it back. But the other two cases are risky:
apply_dimension
orresample_cube_spatial
do not eliminate the "bands" dimension, but the user is still adding another (?) "bands dimension.Further down the line, when executing the whole graph, the user gets non-helping errors (e.g. "java.lang.IllegalArgumentException: Invalid band index 5, only 4 bands available.").
I think we should throw a more clear error here.
Maybe even this can be done client-side
The text was updated successfully, but these errors were encountered: