Code covered by the BSD License  

Highlights from
2D and 3D Remapping

Be the first to rate this file! 76 Downloads (last 30 days) File Size: 34.5 KB File ID: #41669
image thumbnail

2D and 3D Remapping

by

 

07 May 2013 (Updated )

Creates Remapper (Interpolant/Extrapolant) for efficient mapping of data on 2D and 3D grids.

| Watch this File

File Information
Description

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, G. Badr, J.E. Castillo, "A New Polynomial Based Remapping Software Package", Environmental Modeling and software, SUBMITTED FOR REVIEW on Dec. 7th, 2014.

Acknowledgements

This file inspired Curvilinear 2 D Grid Poisson.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
MATLAB Search Path
/
/Curvilinear2DPoisson
Other requirements Please cite the following: M. Abouali, G. Badr, J.E. Castillo, "A New Polynomial Based Remapping Software Package", Environmental Modeling and software, SUBMITTED FOR REVIEW on Dec. 7th, 2014.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
08 May 2013

- Changing the description a bit

08 May 2013

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

08 May 2013

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

10 May 2013

Changed some stuff in the description and tags.

14 Aug 2013

Adding 3D data capabilities

23 Sep 2014

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

23 Sep 2014

- correction dictation of site to cite. :D

08 Dec 2014

- 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.

15 Dec 2014

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

Contact us