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

Home » Public Forums » archive » Re: How do I get IDL to see that my procedure exists?
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 do I get IDL to see that my procedure exists? [message #12687] Wed, 02 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Bruce Bowler (bbowler@bigelow.org) writes:

> I wrote an IDL procedure to do what I want. I put it in a directory
> called /usr/users/Bowler/idl and called it anyData.pro. The first line
> of the file is
>
> PRO anyData, file, inbounds
>
> and it ends with an END. When I open the file in IDLDE and call it, it
> works fine. Now I want to do from the IDL (rather than IDLDE) prompt,
> so I do the following
>
> IDL> !path = !path + ":/usr/users/Bowler/idl"
> IDL> print, !path
> {the path does, indeed, include my directory}
> IDL> anyData, "data.xxx", inbounds
>
> and it says
>
> % Attempt to call undefined procedure/function: 'ANYDATA'.
> % Execution halted at: $MAIN$
>
> Why??? This is 5.0.2 on a Sparc 5 running Solaris 2.5.1.

Well, Sir, you are working on an operating system that is
case sensitive. Thus the file "anyData.pro" is different from
a file named "anydata.pro". As it happens, when you type a
name of a procedure at the IDL command line:

IDL> junk

and IDL has to go looking for a file with that name
(ie. junk.pro), it *always* looks for files with
lowercase names.

Name your file "anydata.pro" and you will be in business.

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: How do I get IDL to see that my procedure exists? [message #12689 is a reply to message #12687] Wed, 02 September 1998 00:00 Go to previous message
Richard G. French is currently offline  Richard G. French
Messages: 65
Registered: June 1997
Member
I think this has to do with the capitalization of the procedure.
In IDL, a procedure name is not case-sensitive. I have found that
I need to store the files in names like anydata.pro, not
anyData.pro. Give it a try.
Dick French
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Making IDL Code Available: linked list modules
Next Topic: Re: How to display data

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

Current Time: Wed Oct 08 19:45:50 PDT 2025

Total time taken to generate the page: 0.00562 seconds