Gaussian interpolation with successive corrections
Code for Gaussian Interpolation with successive corrections. Running of the code is a little slow , but the results seem not bad. In this code I applied just one step successive corrections. The figure shows the Sea Level Pressure field from NCEP data. I used it to verify the interpolation results.
%------ Input: 'x' is the original longitude, 'y' is the original latitude -------
%--------- 'z' is the original data field,'rr' is the radius influence ------------
%------ 'xi' is the interpolate longitude, 'yi' is the interpolate latitude -------
%----------------------------------------------------------------------------------------
%------ Output: 'F'(interpolate value with successive corrections) --------
%------ 'F0'(interpolate value without successive corrections) --------
%------ 'FD'(interpolate value error for new grids) --------
%------ Notice: 'x,y,z' must be the same size, ------------
%------ the unit of input radius‘rr’is (m) -------
%----------------------------------------------------------------------------------------
% Usage: [x,y] = meshgrid(long,lati);
% [F F0 FD] = gaussian_interpolation(x,y,z,400*10^3,llon,llat);
Cite As
OUC Polar (2024). Gaussian interpolation with successive corrections (https://www.mathworks.com/matlabcentral/fileexchange/44351-gaussian-interpolation-with-successive-corrections), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Interpolation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.