profiley.helpers.filtering
k-space filtering utilities
Module Contents
Classes
Class used to filter a real-space profile in Fourier space |
- class profiley.helpers.filtering.Filter(filename)
Class used to filter a real-space profile in Fourier space
- __repr__()
Return repr(self).
- __str__()
Return str(self).
- filter(x, profile, bins, units='rad')
Filter a given profile
Parameters
- xarray of floats, shape (N,)
locations where the profile was calculated. If not provided, the mid points of the bin edges will be used.
- profilearray of floats, shape (N,)
profile in real space
- binsarray of floats, shape (M,)
bin edges where the profile is calculated. Min and max of bin_edges must be within the min and max of x
- units{‘arcmin’, ‘arcsec’, ‘deg’, ‘rad’}, optional
bin units. Default ‘rad’.
Returns
- x_filteredarray of floats, shape (M-1,)
mid points of bin_edges, where the filtered profile is calculated, in units given by units
- filteredarray of floats, shape (M-1,)
filtered profile, in real space
- filter_map(xmap)
- interp1d(x, y, bounds_error=False, fill_value=0, **kwargs)