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

Home » Public Forums » archive » Re: Interpolate problems
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
Re: Interpolate problems [message #9845] Tue, 02 September 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Inigo Garcia writes:

> I just wanted an easy linear interpolation, and when executing the code
> that comes in the OnLine Help, I get this error message:
>
>> X = FINDGEN(61)/10 - 3
>> V = SIN(X)
>> U = [-2.50, -2.25, -1.85, -1.55, -1.20, -0.85, -0.50, -0.10, $
>> 0.30, 0.40, 0.75, 0.85, 1.05, 1.45, 1.85, 2.00, 2.25, 2.75 ];
>> result = INTERPOL(V, X, U) ;Interpolate.
>
> % Compiled module: INTERPOL.
> % Attempt to call undefined procedure/function: 'INTERPOL'.
> % Execution halted at: $MAIN$
>
> Someone out there knows what's wrong here ??

Probably. I think you have a procedure named INTERPOL somewhere
in your path that is being compiled before the IDL *function* of
the same name is being compiled.

Try this:

IDL> .Compile interpol
IDL> Help, /source

If the INTERPOL is not the one in the IDL lib directory, then you
are finding some other one, which is not the one you want. To fix
the problem, put the IDL lib directory first on your path.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 5 and positioning of Widgets..... :(((
Next Topic: question: programm code area full

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

Current Time: Wed Oct 08 17:39:19 PDT 2025

Total time taken to generate the page: 0.00499 seconds