Apply generic filter to data (real and imaginary seperately)
Parameters:
data Array of spectral data.
filter python function which takes an array and returns a single value.
s tuple defining shape or size taken for each step of the filter.
‘mirror’,’wrap’). Filter mode parameter.
c Constant Value for use in ‘constant’ mode