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

Home » Public Forums » archive » Re: how to clear error message
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 clear error message [message #73283 is a reply to message #73281] Wed, 03 November 2010 16:43 Go to previous messageGo to previous message
ThanhThoan Nguyen is currently offline  ThanhThoan Nguyen
Messages: 1
Registered: November 2010
Junior Member
On Nov 3, 7:04 pm, wlandsman <wlands...@gmail.com> wrote:
> On Nov 3, 5:20 pm, Truong Le <truong...@gmail.com> wrote:
>
>> In other word, I need to know how to catch a stderr that produces from
>> the Astronomy IDL's library.
>> When I try to read a bad FITS file I obtain the following error
>
>> % MRD_HREAD: Warning-Invalid characters in header
>
> If you set the /SILENT keyword in the procedure that calls MRD_HREAD
> (e.g. MRDFITS() or HEADFITS() ) then the error messages will not be
> printed.
>
> But note that this message indicates that you are not reading a valid
> FITS file.  --Wayne

I am trying to loop over several FITS files, and I want to be able to
catch
this error and move on to the next FITS file. With the silent keyword
I don't
think this will resolve my problem.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to clear error message
Next Topic: summing mulit-D array along 1 dimension, at an angle to the rows

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

Current Time: Wed Oct 08 15:17:22 PDT 2025

Total time taken to generate the page: 0.00483 seconds