Comments (7)
function absolute also does not work and results in "expression=absolute()" which fails in grass backend
from openeo-grassgis-driver.
The syntax of the example seems to be wrong. In
"arguments": {
"x": {
"from_parameter": "x"
},
"y": 2
}
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 apply
process:
"arguments": {
"x": {
"from_argument": "data"
},
"y": 2
}
The openeo absolute()
function is now mapped to the GRASS abs()
function.
from openeo-grassgis-driver.
The example is directly created by the current (0.9) python client using
absoluteDC=datacube.apply(process="absolute"), so i would expect it to result in a valid Graph.
which results in:
{
"process_graph": {
"loadcollection1": {
"process_id": "load_collection",
"arguments": {
"id": "nc_spm_08.modis_lst.strds.LST_Day_monthly",
"spatial_extent": null,
"temporal_extent": [
"2015-01-01",
"2015-03-01"
]
}
},
"apply1": {
"process_id": "apply",
"arguments": {
"data": {
"from_node": "loadcollection1"
},
"process": {
"process_graph": {
"absolute1": {
"process_id": "absolute",
"arguments": {
"x": {
"from_parameter": "x"
}
},
"result": true
}
}
}
}
},
"saveresult1": {
"process_id": "save_result",
"arguments": {
"data": {
"from_node": "apply1"
},
"format": "GTIFF",
"options": {}
},
"result": true
}
}
}
from openeo-grassgis-driver.
Creating the same Process using the openEO Webeditor results in a similar Graph:
{
"process_graph": {
"1": {
"process_id": "load_collection",
"arguments": {
"id": "nc_spm_08.modis_lst.strds.LST_Day_monthly",
"spatial_extent": {
"west": -180,
"east": 180,
"south": -90,
"north": 90
},
"temporal_extent": [
"1900-01-01T00:00:00",
"2100-01-01T00:00:00"
],
"bands": null
}
},
"2": {
"process_id": "apply",
"arguments": {
"data": {
"from_node": "1"
},
"process": {
"process_graph": {
"1": {
"process_id": "absolute",
"arguments": {
"x": {
"from_parameter": "x"
}
},
"result": true
}
}
}
},
"result": true
}
},
"parameters": []
}
from openeo-grassgis-driver.
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.
from openeo-grassgis-driver.
Hi Markus.
The way i understand it. The mapping is via the process description for the process which is called with a child "callback"
E.G https://openeo.org/documentation/1.0/processes.html#apply defines a child process parameter x via which the array is passed. Unfortunatly what makes it a bit confusing (for apply) is that the internal parameter is also called x, resulting in the seeming self-reference.
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
from openeo-grassgis-driver.
You're right, I confused the name of the child process parameter with parameter of the "add" process. Thus
"process": {
"process_graph": {
"add1": {
"process_id": "add",
"arguments": {
"x": {
"from_parameter": "x"
},
"y": 2
},
"result": true
}
}
}
and
"process": {
"process_graph": {
"add1": {
"process_id": "add",
"arguments": {
"x": 2
"y": {
"from_parameter": "x"
},
},
"result": true
}
}
}
are both correct and should give the same result.
We need to adjust our "apply", "reduce_dimension" process implementations, I will prepare a PR.
from openeo-grassgis-driver.
Related Issues (20)
- Support Sentinel-2 Level-2A data (with AUX bands) as collection HOT 4
- Log request to this driver fails within openeo-python-client and openeo-webeditor
- Missing OPEN-EO Functions HOT 4
- Function array_element failing in backend HOT 3
- Endpoint /collections completely broken and returning error in wrong format HOT 7
- invalid path for logging HOT 1
- temporal intervals are left-closed
- use official process definitions
- Docker build fails in the testing phase (test_list_strds, test_6_graph_apply)
- Fix several issues reported by the validatior HOT 8
- Example process graphs? HOT 4
- STRDSInfoModel: missing band_reference and band_reference for image collections HOT 2
- Endpoint /collections is extremely slow HOT 8
- Missing bbox coordinate breaks fetching of collection details HOT 6
- Error in /collections endpoint HOT 3
- Make it more easy to change config values
- Sync GH release version to backend_version HOT 1
- Windows installation: KeyError os.environ["HOME"] HOT 5
- Clean set up, should add gdal to requirements.txt HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openeo-grassgis-driver.