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 
Return to the default flat view 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 Go to previous message
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/
[Message index]
 
Read Message
Read Message
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: Fri Oct 10 01:25:27 PDT 2025

Total time taken to generate the page: 0.72046 seconds