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

Home » Public Forums » archive » Re: How does IDL find functions?
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: How does IDL find functions? [message #44449] Sun, 19 June 2005 00:49
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
robertschaefer@gmx.de wrote:

> Hello IDL community,
>
> I'm looking for a smart solution to find functions from my own lib
> inside a self written function or procedure.
> The idea is to get a tree of embedded self written functions.
>
> My solution looks like this but I think there must be an easier way:
>
> -generate a list of functions in user-lib
> -Read the function where to search (openr)
> -compare each line (string) with the list of lib functions
> (how to extract function names egantly? -> strsplit with '=*(' :
> definitely not)
> -save coincide functions (strings) and go on searching into found
> functions
>

You should have a look at catalog_db from our library.

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/idl_work_libraries.htm

The output you like to have you'll see by clicking on one of the database
icons

The trick is to call idl to find the necessary info itselfs.


> Does anybody (I'm sure ;-) ) know how IDL find functions on compiling?
> This may be exactly the right (fast) way...

Yes call idl, see above.

cheers
Reimar

>
> Any ideas? ...Thanks for help...
>
> Best regards
>
> robert

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
Re: How does IDL find functions? [message #44453 is a reply to message #44449] Fri, 17 June 2005 15:20 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
robertschaefer@gmx.de wrote:
> Hello IDL community,
>
> I'm looking for a smart solution to find functions from my own lib
> inside a self written function or procedure.
> The idea is to get a tree of embedded self written functions.
>
> My solution looks like this but I think there must be an easier way:
>
> -generate a list of functions in user-lib
> -Read the function where to search (openr)
> -compare each line (string) with the list of lib functions
> (how to extract function names egantly? -> strsplit with '=*(' :
> definitely not)
> -save coincide functions (strings) and go on searching into found
> functions
>
> Does anybody (I'm sure ;-) ) know how IDL find functions on compiling?
> This may be exactly the right (fast) way...
>
> Any ideas? ...Thanks for help...
>
> Best regards
>
> robert
>

I'm not quite sure what you want to do, but if the question is just how
IDL finds procedures and functions to compile, the following article
will tell you:

http://www.dfanning.com/tips/namefiles.html

If you want to determine the directory in which a function or procedure
was found:

http://www.dfanning.com/documents/programs.html#PROGRAMROOTD IR

The FILE_WHICH() function is also useful.

In general, you always want to put IDL program files into the IDL path.

Good luck,
Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Need Help on IDLgrAxis !
Next Topic: Re: Fast editing of text file?

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

Current Time: Wed Oct 08 11:33:35 PDT 2025

Total time taken to generate the page: 0.00789 seconds