2D and 3D Remapping

Creates Remapper (Interpolant/Extrapolant) for efficient mapping of data on 2D and 3D grids.
1,8K Downloads
Aktualisiert 5. Jan 2015

Lizenz anzeigen

Creates an interpolant/extrapolant to interpolate/extrapolate data form a 2D/3D source grid onto a 2D/3D destination grid. Grids can be structured, unstructured, scattered. You have the option of performing least-square curve fitting too.
The remapper/interpolant/extrapolant is constructed once. No data is needed at this stage. As long as the source grid and destination grid are the same, you can use this projector to transform data from one grid onto another. All that is needed is a matrix multiplication. This approach is very efficient for cases that you have many data fields (or a data that is changing with time) but the source grid and destination grid is not changing.
In some other packages, such as NCL, ESMF, and SCRIP, this is called interpolation weights. However, in this code, you can also extrapolate.
if you set n=3, it would be cubic interpolation, if you put n=4 it would be fourth order interpolation/extrapolation and so on. However, dont't let n get too big or you will face Runge Phenomenon.
I recommend to start with test M-Files to get familiarized with the code and how it is used.
If you use this package or a modified version of this, please cite the following:
M. Abouali, "Investigating Castillo-Grone's Mimetic Difference Operators in Development of Geophysical Fluid Dynamics Models Implemented on GPGPUs", Ph.D. Thesis, San Diego State University, May 2014.

Zitieren als

Mohammad Abouali (2024). 2D and 3D Remapping (https://www.mathworks.com/matlabcentral/fileexchange/41669-2d-and-3d-remapping), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2012b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Quellenangaben

Inspiriert: Curvilinear 2D Grid Poisson

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.12.0.0

- Wrong files were uploaded. Uploading correct sets of files.

1.11.0.0

- Changing the citation

1.10.0.0

- Fixing a bug to match the ConstructPolyInterpolant2D function with the file name.

1.9.0.0

- NOTE: This version is not backward compatible.
- Now the user has more capabilities in choosing the points.
- - nInterp can be single positive or negative number, a vector of positive or negative numbers, or cell array.

1.8.0.0

- correction dictation of site to cite. :D

1.7.0.0

- Providing publication to be sited by those who use this package or a modified version of it.

1.6.0.0

Adding 3D data capabilities

1.5.0.0

Changed some stuff in the description and tags.

1.3.0.0

- noticed that the tags are collapsed together. Separated them with comma

1.2.0.0

- Providing one link to my blog with more information on the package in the description section.

1.1.0.0

- Changing the description a bit

1.0.0.0