comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Vectorize procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Vectorize procedure [message #68978 is a reply to message #68971] Thu, 10 December 2009 07:25 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<041dea05-b2af-435a-b9e9-7ca360287c69@p35g2000yqh.googlegroups.com>,
Romolo Politi <romolo.politi@gmail.com> wrote:

> Hi,
> I'm vectorizing a procedure in order to delete three for loops and
> increase the speed.
> I have to calculating the interpolation on a regular grid.
> newy=interpol(y,x,newx,/spline)
> in the loop manner for each index of the loop there are three
> different arrays .
> in the vectorize manner I have three 3D matrices, But I do not found a
> way to calculate the interpolation matrix.
> Any one have suggestions?
>
> Thanks
>
> Romolo

I'm afraid that you have not clearly explained your problem. Are you
trying to do 3-D cubic spline interpolation? As far as I know,
standard IDL does not contain a multi-dimensional spline interpolation
procedure, only the 1-D functionality available in INTERPOL, SPLINE, and
SPL_INTERP. You can do vectorized multi-dimensional *linear* interpolation
by using INTERPOLATE.

The Advanced Math and Statistics package (extra cost) includes the IMSL
spline interpolation functions. You can view the help files and
see if that is what you need.

http://127.0.0.1:60523/help/index.jsp

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: WCS Coordinates not kept with WRITEFITS
Next Topic: ftp put file on windows using IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:34:46 PDT 2025

Total time taken to generate the page: 0.00400 seconds