astropy:docs

kernel_arithmetics

astropy.convolution.core.kernel_arithmetics(kernel, value, operation)[source] [edit on github]

Add, subtract or multiply two kernels.

Parameters:

kernel : astropy.convolution.kernel

Kernel instance

values : kernel, float or int

Value to operate with

operation : str

One of the following operations:
  • ‘add’

    Add two kernels

  • ‘sub’

    Subtract two kernels

  • ‘mul’

    Multiply kernel with number or convolve two kernels.

Page Contents