cwitools.extraction.smooth_cube_wavelength

cwitools.extraction.smooth_cube_wavelength(data, scale, ktype='gaussian', var=False)

Smooth 3D data spatially by a specified 2D 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.
  • 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