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:
cube (
mpdaf.obj.Cube) – The data you want smoothedkernel_image (2d numpy array) – The smoothing image to apply
**kwargs (dict) – key word arguments passed to
mpdaf_ext.correlate2d_norm()
- Returns:
Spatially smoothed cube.
- Return type: