Fourier-space filtering

profiley includes a module that allows the application of a given Fourier-space filter to any profile. This module relies on the pixell library and is adapted from code written by Mathew Madhavacheril. Because pixell is only required by profiley for this particular application, it is not a basic requirement of profiley, so it should be installed separately:

pip install pixell

Head over to the pixell repository for more details. The Fourier-space filtering can be applied by initializing a Filter object by passing the name of the FITS file containing the Fourier-space two-dimensional filter, which should have been created with pixell:

from profiley.filtering import Filter

filt = Filter(kfilter_fits_filename)

The filtering functionality is contained in the filter method. For a working example, see the filtering example.