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

Home » Public Forums » archive » Re: capture astronomy IDL's library stderr into a file
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: capture astronomy IDL's library stderr into a file [message #73267] Thu, 04 November 2010 00:35
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
Truong Le wrote:
> Hi All,
>
> i need to know how to capture all the stderr or warning that comes
> from the Astronomy IDL's library when the FITS file is badly formatted
> into a file. I have a case where the Astronomy IDL's
> library kept on producing this warning message and never stop.
>
> Thanks
>
>
I've seen those messages couple of times when trying to read a file which does
not conform to the FITS standard either because it is corrupt or of different
file type. You may check your FITS files beforehand using fitsverify

http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify /

to sort out the bad ones.

Regards, Bringfried
Re: capture astronomy IDL's library stderr into a file [message #73298 is a reply to message #73267] Wed, 03 November 2010 12:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Truong Le writes:

> i need to know how to capture all the stderr or warning that comes
> from the Astronomy IDL's library when the FITS file is badly formatted
> into a file. I have a case where the Astronomy IDL's
> library kept on producing this warning message and never stop.

Isn't this a programming technique called "Killing the messenger"?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.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: Re: an idl_opserver-like option for IDL 8.0?
Next Topic: paging question

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

Current Time: Wed Oct 08 17:38:05 PDT 2025

Total time taken to generate the page: 0.00526 seconds