kspace.filters.KSpaceFilter#

class kspace.filters.KSpaceFilter(length, ndim=3)[source]#

Bases: object

Base class for a fixed-scale, isotropic low-pass filter kernel, applied to a field by multiplication in Fourier space: filtered_hat(k) = W_hat(k) * data_hat(k) (Perrone et al. 2026, Eq. 46).

Subclasses implement __call__ as the Fourier-space multiplier W_hat(k), normalized so that W_hat(0) = 1 (i.e. the real-space kernel integrates to unity and the filtered field preserves the mean).

Parameters:
  • length (float) – The filter scale ell, in the same physical units as the grid (e.g. kpc).

  • ndim (int, optional) – Number of dimensions (1, 2, or 3) of the real-space kernel. Default is 3.

__init__(length, ndim=3)[source]#

Methods

__init__(length[, ndim])