mcalf.utils.smooth.smooth_cube(cube, mask, **kwargs)[source]

Apply Gaussian smoothing to velocities.

Smooth the cube of velocities with a Gaussian kernel, applying weights at boundaries.

  • cube (numpy.ndarray, ndim=3) – Cube of velocities with dimensions [time, row, column].

  • mask (numpy.ndarray, ndim=2) – The mask to apply to the [row, column] at every time. Points that are 0 or false will be removed.

  • **kwargs – Keyword arguments to pass to gaussian_kern_3d().


cube_ – The smoothed cube.

Return type:

numpy.ndarray, shape=`cube`