Re: capture astronomy IDL's library stderr into a file [message #73267] |
Thu, 04 November 2010 00:35 |
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  |
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.")
|
|
|