Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

scale_cube

gammapy.image.scale_cube(data, kernels, parallel=True)[source]

Compute scale space cube.

Compute scale space cube by convolving the data with a set of kernels and stack the resulting images along the third axis.

Parameters:
data : ndarray

Input data.

kernels: list of `~astropy.convolution.Kernel`

List of convolution kernels.

parallel : bool

Whether to use multiprocessing.

Returns:
cube : ndarray

Array of the shape (len(kernels), data.shape)