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

Home » Public Forums » archive » Re: Byte Swapping
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: Byte Swapping [message #37032 is a reply to message #37025] Thu, 20 November 2003 12:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mike W writes:

> I am having trouble converting binary data from little endian to big
> endian. Here are my commands:
>
> brr=fltarr(1090,820)
> byteorder,brr,/swap_if_big_endian
> openr,1,'ndvi0006.d'
> readu,1,brr
> close,1
>
> and I get this error message as well:
>
> % READU: End of file encountered. Unit: 1, File: ndvi0006.d
> % Execution halted at: $MAIN$

Not sure I can help with the READU error,
but I'm pretty sure you want this instead of
what you have:

brr = fltarr(1090,820)
openr, 1, ,'ndvi0006.d',/swap_if_big_endian
readu,1,brr
close,1

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
Previous Topic: PostScript output from iTools
Next Topic: Re: IDLWave Reference Card?

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

Current Time: Wed Oct 08 19:22:22 PDT 2025

Total time taken to generate the page: 0.00403 seconds