apply_ndkernel

sofia_redux.toolkit.convolve.kernel.apply_ndkernel(data, kernel, axes=None, normalize=True, is_error=False, **kwargs)[source]

Apply a kernel over multiple features

Parameters:
dataarray_like (shape)
kernelarray_like

Must have 1 dimension or the same number of features as “data”

axesarray_like of int (ndim)
normalizebool, optional

If True, normalize the kernel

is_errorbool, optional

If True, assumes input data are error values and propagates accordingly

kwargsdict, optional

Optional keywords to pass into scipy.ndimage.convolve1d or scipy.ndimage.convolve.

Returns:
convolvednumpy.ndarray (shape)

“data” convolved with “kernel”.