You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Computes a temporal aggregation based on an array of date and/or time intervals.
@@ -1338,7 +1351,20 @@ def aggregate_temporal(
1338
1351
If the dimension is not set, the data cube is expected to only have one temporal dimension.
1339
1352
1340
1353
:param intervals: Temporal left-closed intervals so that the start time is contained, but not the end time.
1341
-
:param reducer: A reducer to be applied on all values along the specified dimension. The reducer must be a callable process (or a set processes) that accepts an array and computes a single return value of the same type as the input values, for example median.
1354
+
:param reducer: the "child callback":
1355
+
the name of a single openEO process,
1356
+
or a callback function as discussed in :ref:`callbackfunctions`,
1357
+
or a :py:class:`UDF <openeo.rest._datacube.UDF>` instance.
1358
+
1359
+
The callback should correspond to a process that
1360
+
receives an array of numerical values
1361
+
and returns a single numerical value.
1362
+
For example:
1363
+
1364
+
- ``"mean"`` (string)
1365
+
- :py:func:`absolute <openeo.processes.max>` (:ref:`predefined openEO process function <openeo_processes_functions>`)
1366
+
- ``lambda data: data.min()`` (function or lambda)
1367
+
1342
1368
:param labels: Labels for the intervals. The number of labels and the number of groups need to be equal.
1343
1369
:param dimension: The temporal dimension for aggregation. All data along the dimension will be passed through the specified reducer. If the dimension is not set, the data cube is expected to only have one temporal dimension.
1344
1370
:param context: Additional data to be passed to the reducer. Not set by default.
0 commit comments