spatial_average

threadcount.fit.spatial_average(cube, kernel_image, **kwargs)[source]

Apply kernel image smoothing on every spatial image in a cube.

This function will correctly apply a smoothing image kernel_image to the data and variance arrays in cube. The normalization is properly propegated to the variance array.

Parameters:
Returns:

Spatially smoothed cube.

Return type:

mpdaf.obj.Cube