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

Home » Public Forums » archive » Re: Fortran unformatted data: Big or little endian
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: Fortran unformatted data: Big or little endian [message #34955 is a reply to message #34952] Wed, 30 April 2003 06:39 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Schroeter (schroeter@muk.uni-hannover.de) writes:

> and it works (up to now ;-)).

I suspect it works *most* of the time. I don't see anything
in there to *cause* the error. :-)

You can certainly read data any way you like. It's not
until you try to make *sense* of the data that you are
likely to run into trouble. In your case, you might try
reading a known data value from the file. It that value
is total nonsense (your were expecting 45 and you get
-20435), then you could "throw" an error, rewind the file,
and read the data again with the SWAP_ENDIAN keyword set.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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
Previous Topic: Fortran unformatted data: Big or little endian
Next Topic: Re: WIDGET_TEXT - HOW TO NOT CHANGE VALUE OF TEXT WHILE EDITING FIELD?

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

Current Time: Sat Oct 11 09:36:56 PDT 2025

Total time taken to generate the page: 1.67866 seconds