[ncl-talk] Triangular mesh interpolation routine
Mary Haley
haley at ucar.edu
Fri Mar 24 09:10:12 MDT 2017
Dan,
You might want to check out the ESMF regridding examples page:
http://www.ncl.ucar.edu/Applications/ESMF.shtml
Example #14 regrids a triangular mesh to a 5 degree grid:
http://www.ncl.ucar.edu/Applications/ESMF.shtml#ex14
There are also a couple of examples associated with the NCL User Guide:
http://www.ncl.ucar.edu/Applications/NUG.shtml
Search for "triangular". You can actually download the data files for these
examples and run them yourselves. The data file link is at the top of the
page.
--Mary
On Wed, Mar 22, 2017 at 1:41 AM, Yu, Hao-Cheng <danishyo at gmail.com> wrote:
> Hi everyone
>
> From website, I know there're lot of routines to do triangular plot and
> regriding.
> Since plot can be made by predefined FE mesh by specified sfYArray,
> sfXArray & sfElementNodes.
> I will assume there must be some interpolation routine for FE mesh, but I
> can't find this on website.
>
> Is there any 2D interpolation routine we can use directly by specifying
> above 3 vars with desired output XY points?
> For example, assume this routine called "tri_interp".
> Pre-defined FE mesh var are X,Y,ele, field to interpolate is ZZ, output
> points are outX, outY.
> Then we can get output points value by out_interp=tri_interp(X,Y,ele,
> ZZ,outX,outY)
>
> For regular grid, like linint2_points can provide similar function and
> efficient.
> Just wonder, is there any similar function for uninstructed grid except
> Natgrid package (which will be quite time consuming if FE mesh is large)?
>
> Dan
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170324/d2a2eb4c/attachment.html
More information about the ncl-talk
mailing list