_apply_reduce_func#

xarray_einstats.stats._apply_reduce_func(func, da, dims, kwargs, func_kwargs=None)[source]#

Help wrap functions with a single input that return an output after reducing some dimensions.

It assumes that the function to be applied only takes int as axis and stacks multiple dimensions if necessary to support reducing multiple dimensions at once.