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

Home » Public Forums » archive » RESOLVE_ROUTINE not finding MEDIAN function?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: RESOLVE_ROUTINE not finding MEDIAN function? [message #81199 is a reply to message #81101] Fri, 17 August 2012 08:39 Go to previous messageGo to previous message
John Correira is currently offline  John Correira
Messages: 25
Registered: August 2011
Junior Member
On 08/17/2012 11:19 AM, David Fanning wrote:
> John Correira writes:
>
>> Am I doing something wrong here? I want to use ROUTINE_INFO on median
>> (well it could be an arbitrary function name, but median is causing a
>> problem), so I use RESOLVE_ROUTINE first to make sure it is compiled,
>> but it is not finding median ??? Must be something obvious I'm missing.
>
> MEDIAN is a system routine. It doesn't need to be compiled. :-)
>
> Cheers,
>
> David
>
>
>

So then I can't use ROUTINE_INFO on it?

IDL> info = ROUTINE_INFO('median',/FUNCTIONS,/PARAMETERS)
% Attempt to call undefined procedure/function: 'MEDIAN'.
% Execution halted at: $MAIN$

I'm writing a procedure that you pass a function name to as a string
parameter, and then that function is used later on in the procedure. I'm
trying to include a check for cases where the caller includes keywords
but the function does not accept keywords, most likely a user written
function. The most obvious way seems to be ROUTINE_INFO, i.e.

takeskeywords =
((ROUTINE_INFO(functname,/FUNCTIONS,/PARAMETERS)).NUM_KW_ARG S GT 0)


but it seems as if that does not work for system routines. Any other
suggestions?

Thanks,

John
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: fft and least sqaues problem
Next Topic: Copying a hash

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

Current Time: Fri Oct 10 20:29:34 PDT 2025

Total time taken to generate the page: 1.11723 seconds