kernel_arithmetics

astropy.convolution.kernel_arithmetics(kernel, value, operation)[source]

Add, subtract or multiply two kernels.

Parameters
kernelastropy.convolution.Kernel

Kernel instance.

valueastropy.convolution.Kernel, float, or int

Value to operate with.

operation{‘add’, ‘sub’, ‘mul’}
One of the following operations:
  • ‘add’

    Add two kernels

  • ‘sub’

    Subtract two kernels

  • ‘mul’

    Multiply kernel with number or convolve two kernels.