tophu.multilook

tophu.multilook(arr, nlooks)

Multilook an array by simple averaging.

Performs spatial averaging and decimation. Each element in the output array is the arithmetic mean of neighboring cells in the input array.

Parameters
arrdask.array.Array

Input array.

nlooksint or iterable of int

Number of looks along each axis of the input array.

Returns
outdask.array.Array

Multilooked array.

Notes

If the length of the input array along a given axis is not evenly divisible by the specified number of looks, any remainder samples from the end of the array will be discarded in the output.