-
Notifications
You must be signed in to change notification settings - Fork 18
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
Details on relation between callback input and output values for data cube operations #216
Comments
@soxofaan Do you think adding something like this to the reduce_dimension's reducer return value would be enough?
|
yes something like that is probably enough for now. Remark about wording though:
I think this leaves some question on the table for the user/reader: in which cases is it possible? in which cases not? Is this documented in more detail somewhere? If it doesn't work: is it the "fault" of the user or the backend? Who can/should fix it? Proposal to make it a bit more concrete and indicate ownership:
|
My intention was to make this as "concise" as possible and leave the full explanation somewhere else (i.e. Data Cube Introduction, links should also be added soon). My explanation felt already too long and yours is now even longer. Ideally, I'd prefer something as short as "Changing the data type may not be supported in all cases, see ..." to not overwhelm in processes, keep them concise and not explain the same thing in 10+ places. Also, I'm not even sure this should be in the processes. The thing is, should a supporting back-end need to remove this or should a non-supporting back-end need to add that to their processes? |
yeah good point about being more concise. short version:
the thing with
is that it is not clear what kind of "cases" your refers to: is it about raster cubes versus vector cubes versus raw arrays? Is it about different back-ends? Is it about other operations that are present in my process graph? That's why I would put an explicit reference to "back-end might not support that" in the note, but I suspect you want to keep it a bit more general? |
Yes, the issue is we don't know in advance what may not be supported. It could be unsupported in all cases, but some back-ends may only not support it in certain cases (e.g. you can convert number and boolean, but not strings). I'll try to come up with a PR once we have a full description in the data cube guide. |
ToDo:
|
I've added more links to processes that work on data cubes. The data cube documentation also contains a "note" that describes the relation between callback input and output values. For now I'll not add warnings to the processes itself until we see in practices that people regularly have issues with such limitations. Until then back-ends can add warnings like the one's proposed here to their process descriptions. Previously, I also clarified on processes.openeo.org etc that these are just the general specifications and back-ends can derive from it. |
Originates from #215 (comment)
We should check whether we want to give more details in the return values regarding what values are "usually" acceptable. See the discussion for more details.
The text was updated successfully, but these errors were encountered: