Open-EO / openeo.org

openeo.org landing page
https://openeo.org
Apache License 2.0
5 stars 15 forks source link

Data cube guide is wrong about aggregate_spatial #55

Closed m-mohr closed 2 years ago

m-mohr commented 2 years ago

The data cube guide talks about aggregate_spatial in a way that it can take 4D cubes and work on them, but the specification of aggregate_spatial only allows to work on 3D cubes:

The data cube must have been reduced to only contain two spatial dimensions and a third dimension the values are aggregated for, for example the temporal dimension to get a time series. Otherwise, this process fails with the TooManyDimensions exception.

We should probably remove the mention of aggregate_spatial and keep the description general. aggregate_spatial can then be mentioned as a variant that works on 3D only.

soxofaan commented 2 years ago

FYI: the VITO backend supports aggregate_spatial on 4D cubes (t, band, x, y), which is actually a feature we commonly use in demo's.