Re: Interpolate problems [message #9845] |
Tue, 02 September 1997 00:00 |
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
|
|
|