arpes.analysis.filters.boxcar_filter_arr#
- arpes.analysis.filters.boxcar_filter_arr(arr, size=None, iteration_n=1, default_size=1, *, use_pixel=False)[source]#
Coordinate aware scipy.ndimage.uniform_filter.
- Parameters:
arr – ARPES data
size – Kernel size, specified in terms of axis units (if use_pixel is False). An axis that is not specified will have a kernel width of default_size in index units. If set 0 as the size, the kernel size is set to 1 in index units, which means no filtering.
iteration_n – Repeats n times.
default_size – Changes the default kernel width for axes not specified in sigma. Changing this parameter and leaving sigma as None allows you to smooth with an even-width kernel in index-coordinates.
use_pixel (bool) – if True, the size value is specified by pixel (i.e. index) units, not axis (physical) units.
- Returns:
smoothed data.