-
Notifications
You must be signed in to change notification settings - Fork 9
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
OPEN-EO math functions "add,divide,multiply" used via apply broken in backend #119
Comments
function absolute also does not work and results in "expression=absolute()" which fails in grass backend |
The syntax of the example seems to be wrong. In
the value to be used as "x" refers to itself. It should either refer to a different parameter or in this example to the data provided to the
The openeo |
The example is directly created by the current (0.9) python client using |
Creating the same Process using the openEO Webeditor results in a similar Graph: |
Strange. I don't understand how the value for a parameter can come from itself? We can of course adjust the backend such that in this case (self-reference) the "data" parameter of the "apply" process is used, but that feels like a hack. |
Hi Markus. in comparison for function reduce_dimension (or apply_dimension) the callback variable is data (https://openeo.org/documentation/1.0/processes.html#reduce_dimension) and any auxilary settings can be passed via context variable |
You're right, I confused the name of the child process parameter with parameter of the "add" process. Thus
and
are both correct and should give the same result. We need to adjust our "apply", "reduce_dimension" process implementations, I will prepare a PR. |
the official OPEN-EO math functions "add,substract,divide,multiply" deliver wrong results.
Calling the functions "add,substract,divide,multiply" via apply for single Band Collection and with 2 as second parameter y
results in identical internal grass call to t.rast.mapcalc with expression=(2) and resulting outputs completely filled with value 2
SubGraph: for apply :
"apply1": {
"process_id": "apply",
"arguments": {
"data": {
"from_node": "loadcollection1"
},
"process": {
"process_graph": {
"add1": {
"process_id": "add",
"arguments": {
"x": {
"from_parameter": "x"
},
"y": 2
},
"result": true
}
}
}
}
}
simpleAddOpenEO-ExampleGraph.txt
The text was updated successfully, but these errors were encountered: