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

Home » Public Forums » archive » Re: Another IDL Doc Question
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: Another IDL Doc Question [message #78857] Thu, 05 January 2012 15:18 Go to next message
Matt[2] is currently offline  Matt[2]
Messages: 69
Registered: March 2007
Member
David Fanning <news@dfanning.com> writes:


> This is not true. The program does NOT contain a main-level
> program. I suppose all might be right if I could figure out
> why it thinks it does. :-(


Isn't this the kind of problem that is easier to solve when the program
in question is included? You could post the file for us to look at?

Cheers,

Matt

--
Matthew Savoie - Senior Software Developer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
Re: Another IDL Doc Question [message #78858 is a reply to message #78857] Thu, 05 January 2012 14:58 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Humm. No, both keywords and the keyword documentation
> is in proper alphabetical order. (At least, as I
> remember the alphabet! Does T3D go before or
> after THICK? I have it before).

Here is another clue. At the top of the documentation that
*is* produced, there is a notation on this file that is
not present in other files. It says: "Contains a main-level
program."

This is not true. The program does NOT contain a main-level
program. I suppose all might be right if I could figure out
why it thinks it does. :-(

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Another IDL Doc Question [message #78859 is a reply to message #78858] Thu, 05 January 2012 14:15 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wlandsman writes:

> I had similar problems that were cured by rearranging the order of the keywords. For example, the keyword alpha would not appear if the procedures was defined like this:
>
> pro test,beta=beta, alpha=alpha, gamma=gamma
>
> but it would appear if the procedure was defined like this:
>
> pro test,alpha=alpha,beta=beta,gamma=gamma
>
> This is presumably some sort of bug but I didn't do enough testing to be sure of when it occurs. I did find that I never had problems when the keywords were in alphabetical order. --Wayne

Humm. No, both keywords and the keyword documentation
is in proper alphabetical order. (At least, as I
remember the alphabet! Does T3D go before or
after THICK? I have it before).

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Another IDL Doc Question [message #78860 is a reply to message #78859] Thu, 05 January 2012 13:24 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I had similar problems that were cured by rearranging the order of the keywords. For example, the keyword alpha would not appear if the procedures was defined like this:

pro test,beta=beta, alpha=alpha, gamma=gamma

but it would appear if the procedure was defined like this:

pro test,alpha=alpha,beta=beta,gamma=gamma

This is presumably some sort of bug but I didn't do enough testing to be sure of when it occurs. I did find that I never had problems when the keywords were in alphabetical order. --Wayne
Re: Another IDL Doc Question [message #78954 is a reply to message #78857] Thu, 05 January 2012 15:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
savoie@nsidc.org writes:

> Isn't this the kind of problem that is easier to solve when the program
> in question is included? You could post the file for us to look at?

Well, it is a big file, with lots and lots of keywords.

I always try to think, "What would I want if I were
in *that* person's shoes!" ;-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Another IDL Doc Question [message #78955 is a reply to message #78858] Thu, 05 January 2012 15:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Here is another clue. At the top of the documentation that
> *is* produced, there is a notation on this file that is
> not present in other files. It says: "Contains a main-level
> program."
>
> This is not true. The program does NOT contain a main-level
> program. I suppose all might be right if I could figure out
> why it thinks it does. :-(

OK, problem solved!

There is a module in this file that I didn't write. If has inside
the module a WHILE loop written like this:

WHILE t lt 5 DO BEGIN t = t * 10 & ipow = ipow +1 & ENDWHILE

When I write the WHILE loop like this, all documentation
works as expected!

WHILE t lt 5 DO BEGIN
t = t * 10 & ipow = ipow +1
ENDWHILE

Who woulda known!?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL help online
Next Topic: Re: Compare Filled Contour Plot in Three Graphics Systems

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

Current Time: Wed Oct 08 18:36:12 PDT 2025

Total time taken to generate the page: 0.00499 seconds