cwitools.extraction.smooth_nd¶
-
cwitools.extraction.
smooth_nd
(data, scale, axes=None, ktype='gaussian', var=False)¶ Smooth along all/any axes of a data cube with a box or gaussian kernel.
Parameters: - data (numpy.ndarray) – The input data to be smoothed.
- scale (float) – The smoothing scale. For a gaussian kernel, this is full-width at half-maximum (FWHM) For a box kernel, this is the width of the box.
- axes (int tuple) – The axes to smooth along. Default is all input axes.
- ktype (str) – The kernel type (‘gaussian’ or ‘box’)
- var (bool) – Set to TRUE when smoothing variance data.
Returns: The smoothed data cube.
Return type: numpy.ndarray