cwitools.imaging.smooth_nd¶
-
cwitools.imaging.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.
- Args:
cube (numpy.ndarray): The input datacube. 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:
- numpy.ndarray: The smoothed data cube.