Closed lforesta closed 4 years ago
@claxn does the python parser also cope with the "from_argument" : "value" syntax? I never tried this yet
In general, the properties parameter in load_collection is broken and we need a better solution for the next version. Also, the process graph above is invalid. The key "eo:cloud_cover" is not supported at that place.
On the other hand, from_argument should be supported.
Actually the parser correctly supports "from_argument". Checking this again, I think the problem here is that "value" is not defined anywhere. For example, in this snippet, "data" is defined before being used with "from_argument":
,
"reduce1": {
"process_id": "reduce",
"arguments": {
"data": {
"from_node": "loadcollection1"
},
"dimension": "spectral_bands",
"reducer": {
"callback": {
"arrayelement1": {
"process_id": "array_element",
"arguments": {
"data": {
"from_argument": "data"
},
"index": 7
},
"result": false
},
I think the example from @kempenep reflects the example in load_collection. @m-mohr What is "value" supposed to be in that example?
In general, parameters for callbacks are defined in the specification of the process. In the properties case in load_collection: It is broken as I said. It will not work at the moment, the behaviour is not well defined.
The following is copy-pasted from an email from @kempenep
I tried to extend the the process_id "load_collection" with some "properties", similar to the example in https://open-eo.github.io/openeo-api/processreference/#load_collection
It seems I get an raise Exception('"from_argument" reference is wrong.') from the translate_process_graph:
Could it be the code is not ready for a "from_argument" : "value"
Thanks, Pieter.
This is the part of the graph for load_collection: