I’m trying to compute a percentile using the quantiles
process. It takes array as input. I have a 2d data cube (x,y; e.g. a DEM). Which data cube process can I use here? I want to get back one number.
I’ve tried it with aggreagate_spatial
and it fails*.
Here’s an example graph:
{
"process_graph": {
"aggregate2": {
"arguments": {
"data": {
"from_node": "load1"
},
"geometries": {
"features": [
{
"geometry": {
"coordinates": [
[
[
11.433438104703031,
47.28888805806898
],
[
11.285468923538287,
47.28888805806898
],
[
11.285468923538287,
47.41113281562161
],
[
11.433438104703031,
47.41113281562161
],
[
11.433438104703031,
47.28888805806898
]
]
],
"type": "Polygon"
},
"properties": null,
"type": "Feature"
},
{
"geometry": {
"coordinates": [
[
[
11.410345656636142,
47.39046895229126
],
[
11.412708610274276,
47.30682719883302
],
[
11.312873819063277,
47.305625634515195
],
[
11.311101603834683,
47.39046895229126
],
[
11.311101603834683,
47.3932680568073
],
[
11.410345656636142,
47.3932680568073
],
[
11.410345656636142,
47.39046895229126
]
]
],
"type": "Polygon"
},
"properties": null,
"type": "Feature"
}
],
"type": "FeatureCollection"
},
"reducer": {
"process_graph": {
"quantiles1": {
"arguments": {
"data": {
"from_parameter": "data"
},
"probabilities": [
0.5
]
},
"process_id": "quantiles",
"result": true
}
}
}
},
"process_id": "aggregate_spatial"
},
"load1": {
"arguments": {
"id": "COPERNICUS_30",
"spatial_extent": {
"east": 11.433438104703031,
"north": 47.411132815621606,
"south": 47.28888805806898,
"west": 11.285468923538287
},
"temporal_extent": [
"2010-12-12T00:00:00Z",
null
]
},
"process_id": "load_collection"
},
"save5": {
"arguments": {
"data": {
"from_node": "aggregate2"
},
"format": "CSV"
},
"process_id": "save_result",
"result": true
}
}
}
Here’s the ID: j-240306b9609f4cc08f4436e16c33f8a9
Here’s the Error:
Error communicating with MapOutputTracker
+23s 795msERROR
ID: [1709741768407, 593386]
▸
OpenEO batch job failed: java.lang.IllegalArgumentException: QuantilesParameterMissing: either 'q' or 'probabilities' argument needs to be set
+25s 150msERROR
ID: [1709741769762, 899002]
PS: *(it works by exchanging quantiles
by median
, but then gives two values as result, where it should be one?)