array_sum

sofia_redux.toolkit.resampling.array_sum(mask)[source]

Return the sum of an array.

Utility function for fast numba calculation of the sum of a 1-D numpy array.

Parameters:
masknumpy.ndarray (N,)

The input array.

Returns:
countint or float

The sum of values.