obspy.signal.interpolation.calculate_lanczos_kernel

calculate_lanczos_kernel(x, a, window)[source]

Helper function to get the actually used kernel for a specific value of a. Useful to analyse the behaviour of different tapers and different values of a.

Parameters:
  • x (numpy.ndarray) The x values at which to calculate the kernel.
  • a (int) The width of the window in samples on either side.
  • window (str) The window used to multiply the sinc function with. One of "lanczos", "hanning", "blackman".

Returns a dictionary of arrays:

  • "full_kernel": The tapered sinc function evaluated at samples x.
  • "only_sinc": The sinc function evaluated at samples x.
  • "only_taper": The taper function evaluated at samples x.