smpy.filters.processing.create_filter_kernel

smpy.filters.processing.create_filter_kernel(filter_func, scale, truncation=1.0, l=None)[source]

Create a 2D kernel for any aperture mass filter.

Generate a 2D convolution kernel from a radial filter function for use in aperture mass mapping operations.

Parameters:
  • filter_func (callable) – Filter function to apply to scaled radii.

  • scale (float) – Scale radius of the filter in pixels.

  • truncation (float, optional) – Truncation radius in units of scale radius.

  • l (int, optional) – Polynomial order parameter for Schneider filter.

Returns:

kernel – 2D filter kernel for convolution operations.

Return type:

numpy.ndarray

Notes

The kernel size is determined by the truncation radius and is always made odd to ensure a well-defined center pixel.