pyart.correct.phase_proc.smooth_and_trim

pyart.correct.phase_proc.smooth_and_trim(x, window_len=11, window='hanning')[source]

Smooth data using a window with requested size.

This method is based on the convolution of a scaled window with the signal. The signal is prepared by introducing reflected copies of the signal (with the window size) in both ends so that transient parts are minimized in the begining and end part of the output signal.

Parameters :

x : array

The input signal

window_len: int :

The dimension of the smoothing window; should be an odd integer.

window : str

The type of window from ‘flat’, ‘hanning’, ‘hamming’, ‘bartlett’, ‘blackman’ or ‘sg_smooth’. A flat window will produce a moving average smoothing.

Returns :

y : array

The smoothed signal with length equal to the input signal.

Previous topic

pyart.correct.phase_proc.unwrap_masked

Next topic

pyart.correct.phase_proc.noise

This Page