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

Home » Public Forums » archive » Re: error reading file question
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: error reading file question [message #51206 is a reply to message #51200] Tue, 07 November 2006 06:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Groff writes:

> Is there a way in IDL to check for problems when reading a data file?
> For example in Fortran you would do something like
> Error_Status = Read (filename)
> IF ( Error_Status /= Success ) THEN
> --------------------------(etc.)
>
> If something is wrong with the data file the problem would be discovered
> via error_status.

Typically, one uses a CATCH error handler for this,
although ON_IOERROR is still sometimes used. Here is
a fairly old article that explains some of the details:

http//www.dfanning.com/misc_tips/conversion_errors.html

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Printing problem as RGB in Linux
Next Topic: 3D plotting

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

Current Time: Sat Oct 11 00:52:31 PDT 2025

Total time taken to generate the page: 1.91842 seconds