aggregate

Luo_Suppe2026-08-15

gma.math.kernel.aggregate

function aggregate(data, size = 3, nodata = None, axis = None, method = "Max"):

Aggregate array.

Parameters:

data: array.

Data to be calculated.

Optional:

size = int. Default 3.

Zoom factor. The output array is scaled by a factor of size.

nodata = float. Default None.

Invalid value in input array. This value will not participate in the aggregation calculation and is automatically set by default (None).

axis = int||list. Default None.

Calculation axis. Automatically expand to all axis by default (None).

method = str. Default 'Max'.

Aggregation method. Indicate how the value of each output cell is determined.

Supported methods include: 'Mean', 'Max', 'Min', 'Sum', 'Median'.

Returns:

Type: array.


Last Updated 8/15/2026, 8:42:21 AM