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

Home » Public Forums » archive » interpolate weirdness
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
interpolate weirdness [message #87659] Fri, 21 February 2014 04:00 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
Hi Folks,

I know that there is no 'correct' way for interpolation, but maybe a 'best' IDL way. The following example easily demonstrates what I mean:

IDL> d=dist(20) & print,interpolate(d,[.5],[.5],/grid)
0.853553

IDL> print,interpolate(d,[.5],[.5],/grid,/cubic)
0.622236

IDL> print,interpolate(d,[.400544],[.400544],/grid)
0.707107

IDL> print,interpolate(d,[.581946],[.581946],/grid,/cubic)
0.707107

IDL> print,'The result should be: ',sqrt(.5)
The result should be: 0.707107


It does not play a role which IDL version is used - for IDL 6.4 and for IDL 8.3 I got the same results. Is there any way to get 'closer' to a reasonable result?

Thanks and Cheers

Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Behaviour of colorbar title in z-buffer?
Next Topic: Orientation of Contour Labels

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

Current Time: Fri Oct 10 09:18:24 PDT 2025

Total time taken to generate the page: 0.80021 seconds