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 #92344] Sun, 22 November 2015 11:10 Go to next message
amin farhang is currently offline  amin farhang
Messages: 39
Registered: November 2010
Member
Dear all,

I want to interpolate the temperature in a 3D Cartesian grid.
I have the below data:

x = [1,2,3,4,5,6]
y = [.1,.2,.3,.4,.5,.6]
z = [10,20,30,40,50,60]
f = [ 1, 0, 0.255654, 0, 0, 0.0322785]

and now how i could interpolate the f temperature at where it is zero, i.e. at the 1,3 and 4 indexs?

Best regards,
Re: 4D interpolation [message #92496 is a reply to message #92344] Thu, 31 December 2015 11:56 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Sunday, November 22, 2015 at 2:10:24 PM UTC-5, Amin Farhang wrote:
> Dear all,
>
> I want to interpolate the temperature in a 3D Cartesian grid.
> I have the below data:
>
> x = [1,2,3,4,5,6]
> y = [.1,.2,.3,.4,.5,.6]
> z = [10,20,30,40,50,60]
> f = [ 1, 0, 0.255654, 0, 0, 0.0322785]
>
> and now how i could interpolate the f temperature at where it is zero, i.e. at the 1,3 and 4 indexs?
>
> Best regards,

This is just trilinear interpolation, not 4D, so the built-in INTERPOLATE function should work fine.

This prompts me to ask, though -- why does interpolate only function up to 3D? No reason it shouldn't be extensible to an arbitrary number of dimensions (or at least to the 8 maximum array dimensions).

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Georectify airborne image data
Next Topic: Opening and read .dat file double format

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

Current Time: Wed Oct 08 13:37:10 PDT 2025

Total time taken to generate the page: 0.00437 seconds