Open clausmichele opened 10 months ago
A common use case is a combination of apply_dimension
+ quantiles
, which also fails.
@m-mohr FYI related to this https://github.com/Open-EO/openeo-processes-dask/pull/204
Sample tests for quantiles are here: https://github.com/Open-EO/openeo-test-suite/blob/main/src/openeo_test_suite/tests/workflows/test_apply_dimension.py
You can use mean and other reducers, you just need to convert the output to an array again using e.g. array_create. You can't use them standalone though, indeed.
I'm also working on example tests here: https://github.com/Open-EO/openeo-processes/blob/add-tests/tests/apply_dimension.json5
From the apply_dimension definition:
Currently, the internal tests are using processes like
add
,mean
andorder
. Theadd
andmean
processes can't be used since they do not return an array of values but a single number.The
order
process should be ok, since it returns an array. However, I can't really use it in a normal process graph so probably the test is not testing it correctly.Returned error for the above example:
ValueError: order with nodata=None is not supported for arrays with more than one dimension, as this would result in sparse multi-dimensional arrays.
So I can try to set the nodata:
error: