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

Home » Public Forums » archive » Re: How to make IDL be quiet
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 to make IDL be quiet [message #37456 is a reply to message #37452] Tue, 16 December 2003 19:44 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <davidf@dfanning.com> writes:
> mwallace.removethismunge@swri.edu.invalid writes:
>
>> I'm quite new to IDL, so hopefully this will be a simple question for
>> the rest of you.
>>
>> How can I prevent IDL from printing out all the nominal messages such as
>> "% Compiled Module: FOO" or "% Loaded DLM: BAR"? I'd rather that IDL
>> just be quiet and only report something to the terminal if there were a
>> serious error or if I use a print statement from within my program.
>>
>> I also have a couple places in my code where an error could be expected.
>> In those particular cases, I still want the error handling on and
>> !ERROR_STATE to be filled with the correct values, but I don't want to
>> show this error since I will be handling it and the program will
>> continue execution. So, in short, how do I get control over what's
>> written to the terminal?
>
> I'm sure you *think* this is what you want to do.
> But I'm also sure that if you succeed in doing it,
> it won't be long before you see what a really bad
> idea this is. :-)
...
> a silent Catch that I don't have too much sympathy for

Despite David's current peevishness, CATCH is definitely a strong
contender for what you want. David is right though, you need to have
pretty good policy regarding how errors get handled and get passed up
the chain.

Other contenders are ON_ERROR and ON_IOERROR. ON_ERROR doesn't give
you much control; sometimes ON_IOERROR is required to catch I/O errors
I believe (and "I/O" includes typecasts).

As to your first question, there is some newfangled compile option
which can turn off the "compiled" messages, but I don't bother.
Eventually you learn coping skills.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: For loops vs. matrix operations
Next Topic: Re: IDL and supercomputers?

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

Current Time: Fri Oct 10 13:04:03 PDT 2025

Total time taken to generate the page: 2.24112 seconds