On 05/11/2010 01:40 PM, eddycarl wrote:
> Hi there,
>
> Sorry to ask this stupid question. But, although we have a plenty of
> interpolation function available in NCL, I would say that I am really
> confused about the difference between them - the documentation makes me
> puzzled. Maybe more explicit examples are needed.
> Anyway, what I hope to do is a simple problem. If x is a 2d array,
> x(time,wavelength) and wavelength is not equally spaced. I want to
> interpolate x to get a time series at a particular wavelength. Then
> which function shall I use? dspnt2 or linint2_points? And how do I use
> it? Thanks!
=============================
Based on the above, it is not clear [to me] what you want.
q(time,wavelength) ; generic==> q(y,x)
Q = q(wavelength|:,time|) ; Q(x,y)
For each time, are all wavelength the same?
fo = linint2_points(xi,yi,fi, False, xo,yo, 0) ; generic
wavp = 7.5 ; your "particular wavelength"
WAVp = conform(time, wavp, 0)
wavo = linint2_points(time,wavelength, Q, False, time, WAVp, 0)
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 12 15:05:23 2010
This archive was generated by hypermail 2.1.8 : Thu May 13 2010 - 10:03:00 MDT