smoothing
convolution of a scaled window with the signal
Smoothing of a 1D signal, 2D signal — SciPy Cookbook documentation Convolution and Filtering (astropy.convolution) — Astropy Proper treatment of NaN values (ignoring them during convolution and replacing NaN pixels with interpolated values)
2D smoothing
code:python
def smooth(x,n):
import scipy as sp
w=np.ones((n,n),dtype=float)
w=w/w.sum()
xn=sp.signal.convolve(x,w,mode="same")
return xn
Filtfilt
Filtfilt — SciPy Cookbook documentation
Savitzky Golay Filtering
Savitzky Golay Filtering — SciPy Cookbook documentation 1D, 2D
Laplace filter
Create maps using Etopo1 and matplotlib | Trond Kristiansen
lanczos filter
Filtering out tides with pandas, iris and numpy
LOESS/LOWESS
LOESS - Towards Data Science
statsmodels.nonparametric.smoothers_lowess.lowess
PythonでのLOWESSの信頼区間 - コードログ
n-point smoothing
metpy calc smooth_n_point
MetPy Mondays `#117 - Smoothing and Plotting : Unidata Developer's Blog xarray
5-point smoothing
Median Filter
scipy.signal.medfilt
MetPy Mondays `#129 - Cleaning Up Glitchy Data : Unidata Developer's Blog Tips
numpy - Detrend or Filter a sawtooth signal (Python) - Stack Overflow
Gaussian smoothing
smooth_gaussian
See also