Closed soxofaan closed 1 year ago
also related to the discussion around https://github.com/Open-EO/openeo-processes/issues/341#issuecomment-1067886942
Yes, I also stumbled across this recently and it needs to be rephrased based also on the vector cube definition later. One potential solution is indeed what you proposed and is also given as an example in the mentioned discussion: https://github.com/Open-EO/openeo-processes/issues/341#issuecomment-1068179876
is also given as an example in the mentioned discussion: https://github.com/Open-EO/openeo-processes/issues/341#issuecomment-1068179876
with the difference, I think, that the "result" and "band" dimension should be separate, instead of flattened as in that example
How should that work? You did argue above that this doesn't work if I understood it correctly?
How should that work?
It's like my original example, but one additional dimension:
start from 3D raster cube: (x, y, bands) output should be (I think): 3D vector cube:
The devtelco of this afternoon led me to this " total_count and valid_count" feature of aggregate_spatial I was not aware of.
https://github.com/Open-EO/openeo-processes/blob/b81e96b454b808e32aa94128ba71daf5b06daa19/aggregate_spatial.json#L81
I'm not sure this makes sense: you can not just "add a new dimension" to append metadata
For example, assume the input raster cube is a 2D (x,y) raster cube
Purely looking at the aggregation results, the output is also a 2D vector cube with a vector dimension (with a label for each geometry) and a "result" dimension (with just a single item, e.g. label "aggregation"). Attempt to visualize:
First observation: the "result" dimension is actually not necessary, the result could just be a 1D vector cube.
Now about the result_meta dimension and its labels total_count and valid_count. If you simply "add" this dimension, then you get a 3D vector cube, with dimensions:
but your aggregations are lost here: at what coordinates in this cube is the original aggregation stored? This result cube has only metadata.
I think what is intended is that total_count and valid_count should be new labels in the "result" dimension. So the "result" dimension would have labels "aggregation", "total_count", "valid_count"