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

Home » Public Forums » archive » INTERPOLATE
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
INTERPOLATE [message #20166] Thu, 18 May 2000 00:00
Michael Cugley is currently offline  Michael Cugley
Messages: 9
Registered: May 2000
Junior Member
Maybe it's me, but this seems wrong...



IDL> foo = [[1000.0, 1000.0],[-1000.0, -1000.0]]
IDL> print, foo
1000.00 1000.00
-1000.00 -1000.00

IDL> x = [0.0, 0.5, 1.0]

IDL> bar = interpolate(foo, x, x,/grid)
IDL> print, bar
1000.00 1000.00 1000.00
0.00000 0.00000 0.00000
-1000.00 -1000.00 -1000.00

IDL> y = findgen(4) / 3
IDL> print, y
0.00000 0.333333 0.666667 1.00000

IDL> bleeble = interpolate(bar, y, y, /grid)

IDL> print, foo
1000.00 1000.00
-1000.00 -1000.00
IDL> print, bar
1000.00 1000.00 1000.00
0.00000 0.00000 0.00000
-1000.00 -1000.00 -1000.00
IDL> print, bleeble
1000.00 1000.00 1000.00 1000.00
666.667 666.667 666.667 666.667
333.333 333.333 333.333 333.333
0.00000 0.00000 0.00000 0.00000

??? Where's my -1000 values gone?
--
Michael Cugley (mjcugley@medphys.dundee.ac.uk)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [Fwd: tensor multiplication]
Next Topic: [XYZ]MINOR and /XLOG, /YLOG

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

Current Time: Fri Oct 10 11:57:33 PDT 2025

Total time taken to generate the page: 0.55968 seconds