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

Home » Public Forums » archive » 4D Interpolation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
4D Interpolation [message #92652] Tue, 02 February 2016 06:00 Go to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

The standard INTERPOLATE function works up to 3 dimensions. I need a 4D interpolation.

I came across with a post referring to interpolate_n.pro by Peter Albert but is no longer available.

Any suggestion?
Re: 4D Interpolation [message #92653 is a reply to message #92652] Tue, 02 February 2016 07:46 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
the web archive to the rescue!

http://web.archive.org/web/20051217124215/http://wew.met.fu- berlin.de/idl/interpolate_n.pro
Re: 4D Interpolation [message #92662 is a reply to message #92653] Wed, 03 February 2016 03:29 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Did you use it before? I keep getting the following error: "Array subscript for N_F_I (WHAT_I_NEED_FOR_INTERPOLATION) must have same size as source expression."

I tried the following example

X = FINDGEN(2,50,50,5,125)
X1 = FINDGEN(128)
X2 = FINDGEN(128)
X3 = FINDGEN(20)
X4 = FINDGEN(125)

Xint = FLTARR(2,128,128,20,125)

Xint[0,*,*,*,*] = INTERPOLATE_N(reform(X[0,*,*,*,*]), X1, X2, X3, X4)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interpolation routines
Next Topic: idl-pvwave-mode on Emacs: prompt is locked text

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

Current Time: Wed Oct 08 15:14:03 PDT 2025

Total time taken to generate the page: 0.00488 seconds