This function performs a 2D gaussian-weighted moving-window averaging filter on gridded datasets. It's designed to simplify the process of converting resolution to pixels and figuring out what sigma value to use. Click on the light bulb icon to the right on this page to see examples of use.
Chad Greene (2021). filt2 2D geospatial data filter (https://www.mathworks.com/matlabcentral/fileexchange/61003-filt2-2d-geospatial-data-filter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Generate spatial data, moving_average v3.1 (Mar 2008), smooth2a, Noise-Power Spectrum, Generating Gaussian Filter 2D Matrix, filter1, Radially averaged surface roughness/topography power spectrum (PSD), scatstat2 2D local statistics, ndnanfilter.m
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!