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

Home » Public Forums » archive » 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
Byte Swapping [message #37034] Thu, 20 November 2003 12:14
mwatson is currently offline  mwatson
Messages: 2
Registered: November 2003
Junior Member
Sorry if this already went through.
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$

My data, when converted from unsigned 8-bit should have values between
1 and -1.
The negative values seem to be OK but the positive values are wrong.
Any help would be greatly appreciated.
Thank you,

-Mike Watson
-Florida State University
[Message index]
 
Read Message
Previous Topic: Byte Swapping
Next Topic: Re: Matlab Syntax

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

Current Time: Fri Oct 10 06:14:31 PDT 2025

Total time taken to generate the page: 1.36423 seconds