Re: ESMF interpolation

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 14 2012 - 17:05:16 MST

Did you try to write a script? That's the best way of learning.

Attached is a script. The data are bogus. Run the script
(must have 6.1.0) and examine the output.

---
You can use the generated weight file [ wgt.LouisVonder.bilinear.nc ]
to regrid other variables via
http://www.ncl.ucar.edu/Document/Functions/ESMF/ESMF_regrid_with_weights.shtml
Good luck
On 11/14/12 1:20 AM, louis Vonder wrote:
> Dear NCL users,
>
> I want to interpolate output of a regional model to a regular grid using
> the new NCL function (ESMF).
>
> The output of the model is on irregular grid, I want to transform it on
> 0.5°x0.5°.
>
> Here the values of longitude and latitude given by the model
>
> Thank for your help
>
> Louis
>
>
> lon = 0, 0.44, 0.88, 1.32, 1.76, 2.2, 2.64, 3.08, 3.52, 3.96, 4.4, 4.84,
>      5.28, 5.72, 6.16, 6.6, 7.04, 7.48, 7.92, 8.36, 8.8, 9.24, 9.68, 10.12,
>      10.56, 11, 11.44, 11.88, 12.32, 12.76, 13.2, 13.64, 14.08, 14.52,
> 14.96,
>      15.4, 15.84, 16.28, 16.72, 17.16, 17.6, 18.04, 18.48, 18.92, 19.36,
> 19.8,
>      20.24, 20.68, 21.12, 21.56, 22, 22.44, 22.88, 23.32, 23.76, 24.2,
> 24.64,
>      25.08, 25.52, 25.96, 26.4, 26.84, 27.28, 27.72, 28.16, 28.6, 29.04,
>      29.48, 29.92, 30.36, 30.8, 31.24, 31.68, 32.12, 32.56, 33, 33.44,
> 33.88,
>      34.32, 34.76, 35.2, 35.64, 36.08, 36.52, 36.96, 37.4, 37.84, 38.28,
>      38.72, 39.16, 39.6 ;
>
>
> lat = -19.8, -19.36, -18.92, -18.48, -18.04, -17.6, -17.16, -16.72, -16.28,
>      -15.84, -15.4, -14.96, -14.52, -14.08, -13.64, -13.2, -12.76, -12.32,
>      -11.88, -11.44, -11, -10.56, -10.12, -9.68, -9.24, -8.8, -8.36, -7.92,
>      -7.48, -7.04, -6.6, -6.16, -5.72, -5.28, -4.84, -4.4, -3.96, -3.52,
>      -3.08, -2.64, -2.2, -1.76, -1.32, -0.880000000000001,
> -0.440000000000001,
>      -8.88178419700125e-16, 0.439999999999999, 0.879999999999999, 1.32,
> 1.76,
>      2.2, 2.64, 3.08, 3.52, 3.96, 4.4, 4.84, 5.28, 5.72, 6.16, 6.6, 7.04,
> 7.48, 7.92, 8.36, 8.8, 9.24, 9.68, 10.12, 10.56, 11, 11.44, 11.88, 12.32,
>      12.76, 13.2, 13.64, 14.08, 14.52, 14.96, 15.4, 15.84, 16.28, 16.72,
>      17.16, 17.6, 18.04, 18.48, 18.92, 19.36, 19.8 ;
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Nov 14 17:05:27 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 21 2012 - 11:16:05 MST