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

Home » Public Forums » archive » Re: structure__define
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: structure__define [message #22498] Fri, 17 November 2000 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:

> David, it always helps when you are being specific. You are too far
> ahead for most of us to catch up.

It would have helped, I think, had I said the "IDL path"
(which is what I meant) instead of the "IDL way". But
I had sent the 11 year old out to start the car and I
had half a mind on what his mother was going to say
when she game home to find the garage missing. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: structure__define [message #22502 is a reply to message #22498] Fri, 17 November 2000 00:00 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:
> OK, let me be specific. Rename your local file from
> "structAtheader__define.pro" to "structatheader__define.pro".
> That will solve your problem. :-)

David, it always helps when you are being specific. You are too far
ahead for most of us to catch up. I too had a problem figuring out what
you've meant by "any time IDL is looking for file names automatically,
it always assumes all lowercase characters. It does this *specifically*
so these programs will run on UNIX machines" :-)

> Files that are named properly--lowercase characters, last
> program module in the file has the same name as the file,
> located in the IDL path, etc.--never have to be explicitly
> compiled. IDL just finds them, compiles them, and runs them
> when they are needed.

Cheers,
Pavel

P.S. I just love the way David explains. I can see the endless patience.
I guess I should have attended more of his IDL classes.
Re: structure__define [message #22504 is a reply to message #22498] Fri, 17 November 2000 00:00 Go to previous message
Randall Skelton is currently offline  Randall Skelton
Messages: 169
Registered: October 2000
Senior Member
OK. I can answer my own question now. It seems that case sensitivity is
somewhat lost on IDL-- the filename <structAtheader__define.pro> was not
being found but <structatheader__define.pro> is found fine.

My OS is Linux and I never would have guessed there would be a problem
with case sensitivity...

Cheers,
Randall

On Fri, 17 Nov 2000, Randall Skelton wrote:

> Date: Fri, 17 Nov 2000 15:58:32 +0000
> From: Randall Skelton <rhskelto@atm.ox.ac.uk>
> Newsgroups: comp.lang.idl-pvwave
> Subject: structure__define
>
> Obviously, my last question was a little too general... the jabs about
> programming in FORTRAN for too long are well deserved. Nevertheless, if I
> have a misconception here about IDL please point it out rather than just
> poking fun...
>
> I cannot seem to get my structure (defined in a local file
> structAtheader__define.pro) to be recognized without explicitly executing
> .compile/.run first. i.e.
>
> IDL> print, !PATH
> .:/home/dougal/aopp/rhskelto/idl:/usr/local/PACK/idl-5.3/lib /hook:
> IDL> .run runlog
> % Compiled module: GET_ATOCCULT.
> IDL> get_atoccult
> % Attempt to call undefined procedure/function: 'STRUCTATHEADER__DEFINE'.
> % Execution halted at: GET_ATOCCULT 11
> /local/home/mulligan/aopp/rhskelto/src/runlog_idl/runlog.pro
> % $MAIN$
> IDL>
>
> BUT, if I tell IDL that structatheader__define.pro exists things work?
>
> IDL> .run structAtheader__define
> % Compiled module: STRUCTATHEADER__DEFINE.
> IDL> .run runlog
> % Compiled module: GET_ATOCCULT.
> IDL> get_atoccult
>>>> >>>>>>>> WORKS FINE >>>>>>>>>>>>>
>
>
>
Re: structure__define [message #22506 is a reply to message #22498] Fri, 17 November 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Randall Skelton (rhskelto@atm.ox.ac.uk) writes:

> Obviously, my last question was a little too general... the jabs about
> programming in FORTRAN for too long are well deserved. Nevertheless, if I
> have a misconception here about IDL please point it out rather than just
> poking fun...
>
> I cannot seem to get my structure (defined in a local file
> structAtheader__define.pro) to be recognized without explicitly executing
> .compile/.run first. i.e.
>
> IDL> print, !PATH
> .:/home/dougal/aopp/rhskelto/idl:/usr/local/PACK/idl-5.3/lib /hook:
> IDL> .run runlog
> % Compiled module: GET_ATOCCULT.
> IDL> get_atoccult
> % Attempt to call undefined procedure/function: 'STRUCTATHEADER__DEFINE'.
> % Execution halted at: GET_ATOCCULT 11
> /local/home/mulligan/aopp/rhskelto/src/runlog_idl/runlog.pro
> % $MAIN$
> IDL>
>
> BUT, if I tell IDL that structatheader__define.pro exists things work?
>
> IDL> .run structAtheader__define
> % Compiled module: STRUCTATHEADER__DEFINE.
> IDL> .run runlog
> % Compiled module: GET_ATOCCULT.
> IDL> get_atoccult
>>>> >>>>>>>> WORKS FINE >>>>>>>>>>>>>

OK, let me be specific. Rename your local file from
"structAtheader__define.pro" to "structatheader__define.pro".
That will solve your problem. :-)

Files that are named properly--lowercase characters, last
program module in the file has the same name as the file,
located in the IDL path, etc.--never have to be explicitly
compiled. IDL just finds them, compiles them, and runs them
when they are needed.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: compile all files in current path
Next Topic: Re: include files in IDL programs

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

Current Time: Wed Oct 08 19:12:27 PDT 2025

Total time taken to generate the page: 0.00698 seconds